From 8697ba720e155f58119f3b46b332c2c8f9771ad8 Mon Sep 17 00:00:00 2001 From: beauxq Date: Sun, 14 Jan 2024 08:58:50 -0800 Subject: [PATCH] fix for python 3.8 --- worlds/soe/options.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/soe/options.py b/worlds/soe/options.py index d1d0f1f1ae75..d3f1bb774f33 100644 --- a/worlds/soe/options.py +++ b/worlds/soe/options.py @@ -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 @@ -13,7 +13,7 @@ class FlagsProtocol(Protocol): class FlagProtocol(Protocol): value: int - default: int | Literal["random"] + default: Union[int, Literal["random"]] flag: str