Skip to content

Remaining koala changes #51

Remaining koala changes

Remaining koala changes #51

Triggered via pull request July 25, 2024 09:08
Status Failure
Total duration 17s
Artifacts

python-tests.yaml

on: pull_request
Run pyright
7s
Run pyright
Fit to window
Zoom out
Zoom in

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/entrance_rando.py#L364
Variable "i" is not accessed (reportUnusedVariable)
Run pyright: Dolphin scripts/Entrance Randomizer/lib/graph_creation.py#L89
Type of "append" is partially unknown   Type of "append" is "(object: Unknown, /) -> None" (reportUnknownMemberType)
Run pyright: Dolphin scripts/Entrance Randomizer/lib/graph_creation.py#L90
Type of "append" is partially unknown   Type of "append" is "(object: Unknown, /) -> None" (reportUnknownMemberType)
Run pyright: Dolphin scripts/Entrance Randomizer/lib/graph_creation.py#L95
Type of "area_id" is partially unknown   Type of "area_id" is "int | Unknown" (reportUnknownVariableType)
Run pyright: Dolphin scripts/Entrance Randomizer/lib/graph_creation.py#L110
Argument type is partially unknown   Argument corresponds to parameter "x" in function "__new__"   Argument type is "int | Unknown" (reportUnknownArgumentType)
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)