Skip to content

Remaining koala changes #48

Remaining koala changes

Remaining koala changes #48

Triggered via pull request July 21, 2024 19:55
Status Failure
Total duration 3m 5s
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#L23
"_transition_infos_dict_rando" is private and used outside of the module in which it is declared (reportPrivateUsage)
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#L294
Argument of type "tuple[int, ...]" cannot be assigned to parameter "object" of type "tuple[int, int]" in function "append"   "tuple[int, ...]" is incompatible with "tuple[int, int]"     Tuple size mismatch; expected 2 but received indeterminate (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#L9
"_transition_infos_dict_rando" is private and used outside of the module in which it is declared (reportPrivateUsage)
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)