Witness: Fix type hints being incompatible with 3.8 (#1991)

* Fixed 3.8 typing in init

* Fixed 3.8 typing in items

* Fixed 3.8 typing in player logic

* Fixed 3.8 typing in static_logic

* Fix 3.8 typing in utils

* Fixed fault import
This commit is contained in:
NewSoupVi
2023-07-20 02:10:48 +02:00
committed by GitHub
parent 1e72851b28
commit 6797216eb8
5 changed files with 37 additions and 37 deletions

View File

@@ -16,7 +16,7 @@ When the world has parsed its options, a second function is called to finalize t
"""
import copy
from typing import Set, Dict, cast
from typing import Set, Dict, cast, List
from logging import warning
from BaseClasses import MultiWorld
@@ -421,7 +421,7 @@ class WitnessPlayerLogic:
self.MULTI_LISTS = dict()
self.PROG_ITEMS_ACTUALLY_IN_THE_GAME_NO_MULTI = set()
self.PROG_ITEMS_ACTUALLY_IN_THE_GAME = set()
self.DOOR_ITEMS_BY_ID: dict[str, list[int]] = {}
self.DOOR_ITEMS_BY_ID: Dict[str, List[int]] = {}
self.STARTING_INVENTORY = set()
self.DIFFICULTY = get_option_value(world, player, "puzzle_randomization")