Skip to content

Commit

Permalink
damn you python 3.8 I wanted to use slots :(
Browse files Browse the repository at this point in the history
  • Loading branch information
Jouramie committed Mar 18, 2024
1 parent e38dc2e commit 68462a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion worlds/stardew_valley/stardew_rule/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def __repr__(self):
return f"Received {self.count} {repr(self.rules)}"


@dataclass(frozen=True, slots=True)
@dataclass(frozen=True)
class Has(BaseStardewRule):
item: str
# For sure there is a better way than just passing all the rules everytime
Expand Down
6 changes: 3 additions & 3 deletions worlds/stardew_valley/stardew_rule/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __repr__(self):
return f"Received {self.count} {self.items}"


@dataclass(frozen=True, slots=True)
@dataclass(frozen=True)
class Received(CombinableStardewRule):
item: str
player: int
Expand Down Expand Up @@ -80,7 +80,7 @@ def get_difficulty(self):
return self.count


@dataclass(frozen=True, slots=True)
@dataclass(frozen=True)
class Reach(BaseStardewRule):
spot: str
resolution_hint: str
Expand All @@ -101,7 +101,7 @@ def get_difficulty(self):
return 1


@dataclass(frozen=True, slots=True)
@dataclass(frozen=True)
class HasProgressionPercent(CombinableStardewRule):
player: int
percent: int
Expand Down

0 comments on commit 68462a6

Please sign in to comment.