Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 move _generate_next_value_ function to comply with python3.11 #1005

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions duckbot/cogs/games/satisfy/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

@unique
class Building(Enum):
def _generate_next_value_(name, start, count, last_values): # noqa: N805
return name

Check warning on line 7 in duckbot/cogs/games/satisfy/building.py

View check run for this annotation

Codecov / codecov/patch

duckbot/cogs/games/satisfy/building.py#L7

Added line #L7 was not covered by tests

AlienPowerAugmenter = (auto(), 0, 0)
Assembler = (auto(), 3, 2)
AwesomeSink = (auto(), 0, 0)
Expand All @@ -28,9 +31,6 @@
Smelter = (auto(), 3, 1)
WaterExtractor = (auto(), 3, 0)

def _generate_next_value_(name, start, count, last_values): # noqa: N805
return name

def __init__(self, value, max_shards, max_sloop: int):
self.max_shards = max_shards
self.max_sloop = max_sloop
Expand Down
6 changes: 3 additions & 3 deletions duckbot/cogs/games/satisfy/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@

@unique
class Item(Enum):
def _generate_next_value_(name, start, count, last_values): # noqa: N805
return name

Check warning on line 16 in duckbot/cogs/games/satisfy/item.py

View check run for this annotation

Codecov / codecov/patch

duckbot/cogs/games/satisfy/item.py#L16

Added line #L16 was not covered by tests

AdaptiveControlUnit = (auto(), Form.Solid, 76_368)
AiExpensionServer = (auto(), Form.Solid, 597_652)
AiLimiter = (auto(), Form.Solid, 920)
Expand Down Expand Up @@ -190,9 +193,6 @@
AwesomeTicketPoints = (auto(), Form.Aux, 0)
MwPower = (auto(), Form.Aux, 0)

def _generate_next_value_(name, start, count, last_values): # noqa: N805
return name

def __init__(self, value, form: Form, points: int):
self.form = form
self.points = points
Expand Down
Loading