Skip to content

Commit

Permalink
fix for python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
beauxq committed Jan 14, 2024
1 parent a5b26e0 commit 8697ba7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/soe/options.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from dataclasses import dataclass, fields
from typing import Any, cast, Dict, Iterator, List, Literal, Tuple, Protocol
from typing import Any, cast, Dict, Iterator, List, Literal, Tuple, Protocol, Union

from Options import AssembleOptions, Choice, DeathLink, DefaultOnToggle, PerGameCommonOptions, ProgressionBalancing, \
Range, Toggle
Expand All @@ -13,7 +13,7 @@ class FlagsProtocol(Protocol):

class FlagProtocol(Protocol):
value: int
default: int | Literal["random"]
default: Union[int, Literal["random"]]
flag: str


Expand Down

0 comments on commit 8697ba7

Please sign in to comment.