Skip to content

Commit

Permalink
convert plando item to dataclass
Browse files Browse the repository at this point in the history
maybe do this for the others? out of scope here though
  • Loading branch information
Silvris committed Dec 2, 2024
1 parent a30030a commit 2794b9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Options.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,7 +1418,8 @@ def verify(self, world: typing.Type[World], player_name: str, plando_options: "P
link["item_pool"] = list(pool)


class PlandoItem(typing.NamedTuple):
@dataclass(frozen=True)
class PlandoItem:
items: list[str] | dict[str, typing.Any]
locations: list[str]
world: int | str | bool | None | typing.Iterable[str] | set[int] = False
Expand Down

0 comments on commit 2794b9a

Please sign in to comment.