From 4daaa4ee229a1469cacdeed8d5539130198c2b14 Mon Sep 17 00:00:00 2001 From: Avasam Date: Thu, 11 Jul 2024 10:54:59 -0400 Subject: [PATCH] Fix type issue --- Dolphin scripts/Entrance Randomizer/lib/graph_creation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py b/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py index 490c19d..2b7136a 100644 --- a/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py +++ b/Dolphin scripts/Entrance Randomizer/lib/graph_creation.py @@ -2,6 +2,7 @@ from collections.abc import Sequence from pathlib import Path +from typing import Any from lib.constants import * # noqa: F403 from lib.constants import __version__ @@ -123,7 +124,8 @@ def create_edges(transitions_map: dict[tuple[int, int], tuple[int, int]]): def create_graphml( - transitions_map: dict[tuple[int, int], tuple[int, int]], + # NOTE: dict is invariant, but Mapping doesn't implement copy + transitions_map: dict[tuple[int, int], tuple[int, int]] | dict[tuple[int, int], Any], temp_disabled_exits: Sequence[tuple[int, int]], seed_string: SeedType, starting_area: int,