Noita: Do some cleanup to make mypy happy (#3114)

This commit is contained in:
Scipio Wright
2024-04-13 19:21:20 -04:00
committed by GitHub
parent 56ec0e902d
commit feaae1db12
4 changed files with 5 additions and 5 deletions

View File

@@ -41,7 +41,7 @@ def create_regions(world: "NoitaWorld") -> Dict[str, Region]:
# An "Entrance" is really just a connection between two regions
def create_entrance(player: int, source: str, destination: str, regions: Dict[str, Region]):
def create_entrance(player: int, source: str, destination: str, regions: Dict[str, Region]) -> Entrance:
entrance = Entrance(player, f"From {source} To {destination}", regions[source])
entrance.connect(regions[destination])
return entrance