Remaining koala changes #54
Annotations
10 errors
Run pyright:
Dolphin scripts/Entrance Randomizer/__main__.py#L38
Type of "dump_spoiler_logs" is partially unknown
Type of "dump_spoiler_logs" is "(starting_area_name: str, transitions_map: Mapping[tuple[int, int], tuple[int, int]], seed_string: int | float | str | bytes | bytearray | Literal[False] | None, transition_infos_dict_rando: dict[int, Unknown], bypassed_exits: list[tuple[int, int]], disabled_transitions: list[tuple[int, int]]) -> None" (reportUnknownVariableType)
|
Run pyright:
Dolphin scripts/Entrance Randomizer/__main__.py#L62
Argument of type "tuple[tuple[LevelCRC, LevelCRC], tuple[LevelCRC, LevelCRC], tuple[LevelCRC, LevelCRC], tuple[LevelCRC, LevelCRC], tuple[LevelCRC, LevelCRC]]" cannot be assigned to parameter "bypassed_exits" of type "list[tuple[int, int]]" in function "dump_spoiler_logs"
"tuple[tuple[LevelCRC, LevelCRC], tuple[LevelCRC, LevelCRC], tuple[LevelCRC, LevelCRC], tuple[LevelCRC, LevelCRC], tuple[LevelCRC, LevelCRC]]" is incompatible with "list[tuple[int, int]]" (reportArgumentType)
|
Run pyright:
Dolphin scripts/Entrance Randomizer/__main__.py#L63
Argument of type "list[tuple[LevelCRC, LevelCRC]]" cannot be assigned to parameter "disabled_transitions" of type "list[tuple[int, int]]" in function "dump_spoiler_logs"
"list[tuple[LevelCRC, LevelCRC]]" is incompatible with "list[tuple[int, int]]"
Type parameter "_T@list" is invariant, but "tuple[LevelCRC, LevelCRC]" is not the same as "tuple[int, int]"
Consider switching from "list" to "Sequence" which is covariant (reportArgumentType)
|
Run pyright:
Dolphin scripts/Entrance Randomizer/lib/entrance_rando.py#L321
Argument of type "tuple[tuple[Literal[LevelCRC.MOUTH_OF_INTI, LevelCRC.CRASH_SITE], int], tuple[int, Literal[LevelCRC.MOUTH_OF_INTI, LevelCRC.CRASH_SITE]]]" cannot be assigned to parameter "iterable" of type "Iterable[tuple[LevelCRC, LevelCRC]]" in function "extend"
"tuple[Literal[LevelCRC.MOUTH_OF_INTI, LevelCRC.CRASH_SITE], int]" is incompatible with "tuple[LevelCRC, LevelCRC]"
Tuple entry 2 is incorrect type
"int" is incompatible with "LevelCRC"
"tuple[int, Literal[LevelCRC.MOUTH_OF_INTI, LevelCRC.CRASH_SITE]]" is incompatible with "tuple[LevelCRC, LevelCRC]"
Tuple entry 1 is incorrect type
"int" is incompatible with "LevelCRC" (reportArgumentType)
|
Run pyright:
Dolphin scripts/Entrance Randomizer/lib/utils.py#L190
Type of parameter "transition_infos_dict_rando" is partially unknown
Parameter type is "dict[int, Unknown]" (reportUnknownParameterType)
|
Run pyright:
Dolphin scripts/Entrance Randomizer/lib/utils.py#L190
"Area" is not defined (reportUndefinedVariable)
|
Run pyright:
Dolphin scripts/Entrance Randomizer/lib/utils.py#L196
Type of "name" is unknown (reportUnknownMemberType)
|
Run pyright:
Dolphin scripts/Entrance Randomizer/lib/utils.py#L197
Type of "name" is unknown (reportUnknownMemberType)
|
Run pyright:
Dolphin scripts/Entrance Randomizer/lib/utils.py#L198
Type of "name" is unknown (reportUnknownMemberType)
|
Run pyright:
Dolphin scripts/Entrance Randomizer/lib/utils.py#L199
Type of "name" is unknown (reportUnknownMemberType)
|