diff --git a/Options.py b/Options.py index c37d0cee2810..52c7b5aa127d 100644 --- a/Options.py +++ b/Options.py @@ -1134,14 +1134,14 @@ def __new__(mcs, name: str, bases: tuple[type, ...], attrs: dict[str, typing.Any class PlandoConnection(typing.NamedTuple): - class Direction: + class Direction(enum.StrEnum): entrance = "entrance" exit = "exit" both = "both" entrance: str exit: str - direction: typing.Literal["entrance", "exit", "both"] # TODO: convert Direction to StrEnum once 3.10 is dropped + direction: Direction percentage: int = 100