From 8e125e1d187b7065c7635be05a886448d9391668 Mon Sep 17 00:00:00 2001 From: Abdessamad Derraz <3028866+Abdess@users.noreply.github.com> Date: Thu, 12 Nov 2026 12:35:38 +0100 Subject: [PATCH] chore: move the type check to mypy 2.4.1 mypy 2 checks against Python 3.10 at the oldest, so the target moves there; install.py's 3.8 floor stays held by vermin. Of the errors it reports, three were new rather than reworded. A list of links reused the name of the page list in the same function, a tuple key was spelled with a star unpack mypy 2.4 misreads, and torrentzip's Sink took bytes where a bytearray is passed. The baseline is synced to the new wording. --- .github/workflows/validate.yml | 2 +- mypy-baseline.txt | 717 ++++++++++++++++----------------- pyproject.toml | 6 +- scripts/generate_site.py | 12 +- scripts/torrentzip.py | 2 +- 5 files changed, 365 insertions(+), 374 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 59ef79bc9..1086791af 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -180,7 +180,7 @@ jobs: # what this job has installed does not change the result. - name: Type-check the scripts and the installer run: | - pip install "mypy==1.18.2" "mypy-baseline==0.7.4" + pip install "mypy==2.4.1" "mypy-baseline==0.7.4" mypy > "$RUNNER_TEMP/mypy.txt" || true mypy-baseline filter --no-colors < "$RUNNER_TEMP/mypy.txt" diff --git a/mypy-baseline.txt b/mypy-baseline.txt index f7b159c43..3a6b1ca25 100644 --- a/mypy-baseline.txt +++ b/mypy-baseline.txt @@ -8,53 +8,53 @@ install.py:0: error: "object" has no attribute "get" [attr-defined] install.py:0: error: "object" has no attribute "get" [attr-defined] install.py:0: error: "object" object is not iterable [misc] install.py:0: error: "object" object is not iterable [misc] -install.py:0: error: Argument 1 to "_ZippedLookup" has incompatible type "Optional[FolderIndex]"; expected "FolderIndex" [arg-type] +install.py:0: error: Argument 1 to "_ZippedLookup" has incompatible type "FolderIndex | None"; expected "FolderIndex" [arg-type] install.py:0: error: Argument 1 to "__iadd__" of "list" has incompatible type "Invocation"; expected "Iterable[str]" [arg-type] -install.py:0: error: Argument 1 to "_digest_file" has incompatible type "Optional[Path]"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "_folder_writable" has incompatible type "Optional[Path]"; expected "Path" [arg-type] +install.py:0: error: Argument 1 to "_digest_file" has incompatible type "Path | None"; expected "Path" [arg-type] +install.py:0: error: Argument 1 to "_folder_writable" has incompatible type "Path | None"; expected "Path" [arg-type] install.py:0: error: Argument 1 to "_listed_names" has incompatible type "bool"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "_nearest_folder" has incompatible type "Optional[Path]"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "_replace_released" has incompatible type "Optional[Path]"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "append" of "list" has incompatible type "Optional[CardApp]"; expected "CardApp" [arg-type] -install.py:0: error: Argument 1 to "append" of "list" has incompatible type "Union[TuiKey, TuiMouse]"; expected "TuiKey" [arg-type] -install.py:0: error: Argument 1 to "cannot_write_words" has incompatible type "Optional[Path]"; expected "Path" [arg-type] -install.py:0: error: Argument 1 to "chmod" has incompatible type "Optional[Path]"; expected "Union[int, Union[str, bytes, PathLike[str], PathLike[bytes]]]" [arg-type] -install.py:0: error: Argument 1 to "copy_source_refusal" has incompatible type "object"; expected "Optional[Path]" [arg-type] -install.py:0: error: Argument 1 to "first_holding" of "FolderIndex" has incompatible type "set[Optional[Any]]"; expected "set[int]" [arg-type] -install.py:0: error: Argument 1 to "len" has incompatible type "Optional[Any]"; expected "Sized" [arg-type] -install.py:0: error: Argument 1 to "len" has incompatible type "Optional[Any]"; expected "Sized" [arg-type] -install.py:0: error: Argument 1 to "len" has incompatible type "Optional[Any]"; expected "Sized" [arg-type] -install.py:0: error: Argument 1 to "len" has incompatible type "Optional[list[dict[Any, Any]]]"; expected "Sized" [arg-type] +install.py:0: error: Argument 1 to "_nearest_folder" has incompatible type "Path | None"; expected "Path" [arg-type] +install.py:0: error: Argument 1 to "_replace_released" has incompatible type "Path | None"; expected "Path" [arg-type] +install.py:0: error: Argument 1 to "append" of "list" has incompatible type "CardApp | None"; expected "CardApp" [arg-type] +install.py:0: error: Argument 1 to "append" of "list" has incompatible type "TuiKey | TuiMouse"; expected "TuiKey" [arg-type] +install.py:0: error: Argument 1 to "cannot_write_words" has incompatible type "Path | None"; expected "Path" [arg-type] +install.py:0: error: Argument 1 to "chmod" has incompatible type "Path | None"; expected "int | str | bytes | PathLike[str] | PathLike[bytes]" [arg-type] +install.py:0: error: Argument 1 to "copy_source_refusal" has incompatible type "object"; expected "Path | None" [arg-type] +install.py:0: error: Argument 1 to "first_holding" of "FolderIndex" has incompatible type "set[Any | None]"; expected "set[int]" [arg-type] +install.py:0: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized" [arg-type] +install.py:0: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized" [arg-type] +install.py:0: error: Argument 1 to "len" has incompatible type "Any | None"; expected "Sized" [arg-type] +install.py:0: error: Argument 1 to "len" has incompatible type "list[dict[Any, Any]] | None"; expected "Sized" [arg-type] install.py:0: error: Argument 1 to "remove" of "list" has incompatible type "int"; expected "FolderIndex" [arg-type] -install.py:0: error: Argument 1 to "replace" has incompatible type "Optional[Path]"; expected "Union[str, bytes, PathLike[str], PathLike[bytes]]" [arg-type] -install.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "Optional[Any]"; expected "str" [arg-type] -install.py:0: error: Argument 1 to "settimeout" of "socket" has incompatible type "object"; expected "Optional[float]" [arg-type] -install.py:0: error: Argument 1 to "shown_path" has incompatible type "Optional[Path]"; expected "Union[Path, str]" [arg-type] -install.py:0: error: Argument 1 to "shown_path" has incompatible type "Optional[Path]"; expected "Union[Path, str]" [arg-type] -install.py:0: error: Argument 1 to "shown_path" has incompatible type "Optional[Path]"; expected "Union[Path, str]" [arg-type] -install.py:0: error: Argument 1 to "shown_path" has incompatible type "Optional[Path]"; expected "Union[Path, str]" [arg-type] -install.py:0: error: Argument 2 to "_browse_to" has incompatible type "object"; expected "Optional[Path]" [arg-type] -install.py:0: error: Argument 2 to "_browse_to" has incompatible type "object"; expected "Optional[Path]" [arg-type] -install.py:0: error: Argument 2 to "_choose_card" has incompatible type "Optional[Path]"; expected "Path" [arg-type] +install.py:0: error: Argument 1 to "replace" has incompatible type "Path | None"; expected "str | bytes | PathLike[str] | PathLike[bytes]" [arg-type] +install.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "Any | None"; expected "str" [arg-type] +install.py:0: error: Argument 1 to "settimeout" of "socket" has incompatible type "object"; expected "float | None" [arg-type] +install.py:0: error: Argument 1 to "shown_path" has incompatible type "Path | None"; expected "Path | str" [arg-type] +install.py:0: error: Argument 1 to "shown_path" has incompatible type "Path | None"; expected "Path | str" [arg-type] +install.py:0: error: Argument 1 to "shown_path" has incompatible type "Path | None"; expected "Path | str" [arg-type] +install.py:0: error: Argument 1 to "shown_path" has incompatible type "Path | None"; expected "Path | str" [arg-type] +install.py:0: error: Argument 2 to "_browse_to" has incompatible type "object"; expected "Path | None" [arg-type] +install.py:0: error: Argument 2 to "_browse_to" has incompatible type "object"; expected "Path | None" [arg-type] +install.py:0: error: Argument 2 to "_choose_card" has incompatible type "Path | None"; expected "Path" [arg-type] install.py:0: error: Argument 2 to "_choose_card" has incompatible type "object"; expected "Path" [arg-type] -install.py:0: error: Argument 2 to "_found_elsewhere" has incompatible type "Optional[FolderIndex]"; expected "FolderIndex" [arg-type] -install.py:0: error: Argument 2 to "_setup_label" has incompatible type "Optional[Path]"; expected "Path" [arg-type] +install.py:0: error: Argument 2 to "_found_elsewhere" has incompatible type "FolderIndex | None"; expected "FolderIndex" [arg-type] +install.py:0: error: Argument 2 to "_setup_label" has incompatible type "Path | None"; expected "Path" [arg-type] install.py:0: error: Argument 2 to "_toggle_region" has incompatible type "object"; expected "str" [arg-type] -install.py:0: error: Argument 2 to "core_dirs" has incompatible type "Optional[Path]"; expected "Path" [arg-type] -install.py:0: error: Argument 2 to "detected_os" has incompatible type "Optional[Path]"; expected "Path" [arg-type] -install.py:0: error: Argument 2 to "first_holding" of "FolderIndex" has incompatible type "set[Optional[Any]]"; expected "set[str]" [arg-type] +install.py:0: error: Argument 2 to "core_dirs" has incompatible type "Path | None"; expected "Path" [arg-type] +install.py:0: error: Argument 2 to "detected_os" has incompatible type "Path | None"; expected "Path" [arg-type] +install.py:0: error: Argument 2 to "first_holding" of "FolderIndex" has incompatible type "set[Any | None]"; expected "set[str]" [arg-type] install.py:0: error: Argument 2 to "from_bytes" of "int" has incompatible type "str"; expected "Literal['little', 'big']" [arg-type] install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] install.py:0: error: Argument 2 to "insert" of "list" has incompatible type "str"; expected "TuiLine" [arg-type] -install.py:0: error: Argument 3 to "CardSetup" has incompatible type "Optional[str]"; expected "str" [arg-type] -install.py:0: error: Argument 3 to "_choose" has incompatible type "Optional[Path]"; expected "Path" [arg-type] +install.py:0: error: Argument 3 to "CardSetup" has incompatible type "str | None"; expected "str" [arg-type] +install.py:0: error: Argument 3 to "_choose" has incompatible type "Path | None"; expected "Path" [arg-type] install.py:0: error: Argument 3 to "_choose" has incompatible type "object"; expected "Path" [arg-type] -install.py:0: error: Argument 3 to "_misplaced" has incompatible type "Optional[FolderIndex]"; expected "FolderIndex" [arg-type] -install.py:0: error: Argument 3 to "_wrong_contents" has incompatible type "Optional[FolderIndex]"; expected "FolderIndex" [arg-type] -install.py:0: error: Argument 3 to "create_connection" has incompatible type "object"; expected "Optional[Union[tuple[Any, ...], str, Buffer]]" [arg-type] +install.py:0: error: Argument 3 to "_misplaced" has incompatible type "FolderIndex | None"; expected "FolderIndex" [arg-type] +install.py:0: error: Argument 3 to "_wrong_contents" has incompatible type "FolderIndex | None"; expected "FolderIndex" [arg-type] +install.py:0: error: Argument 3 to "create_connection" has incompatible type "object"; expected "tuple[Any, ...] | str | Buffer | None" [arg-type] install.py:0: error: Argument 3 to "keep_regions" has incompatible type "list[str]"; expected "frozenset[Any]" [arg-type] install.py:0: error: Argument 4 to "_write_verified" has incompatible type "Callable[[], IO[bytes]]"; expected "Callable[[], ContextManager[BinaryIO]]" [arg-type] install.py:0: error: Argument 6 to "_compose" has incompatible type "tuple[()]"; expected "list[Any]" [arg-type] @@ -76,73 +76,73 @@ install.py:0: error: Cannot infer type of lambda [misc] install.py:0: error: Cannot infer type of lambda [misc] install.py:0: error: Cannot infer type of lambda [misc] install.py:0: error: Cannot infer type of lambda [misc] -install.py:0: error: Incompatible default for argument "after" (default has type "tuple[()]", argument has type "list[Any]") [assignment] -install.py:0: error: Incompatible default for argument "copied" (default has type "tuple[()]", argument has type "list[str]") [assignment] -install.py:0: error: Incompatible default for argument "cores" (default has type "tuple[()]", argument has type "list[str]") [assignment] -install.py:0: error: Incompatible default for argument "footer" (default has type "tuple[()]", argument has type "list[Any]") [assignment] -install.py:0: error: Incompatible default for argument "omitted" (default has type "tuple[()]", argument has type "list[dict[Any, Any]]") [assignment] -install.py:0: error: Incompatible default for argument "pinned" (default has type "tuple[()]", argument has type "list[Any]") [assignment] -install.py:0: error: Incompatible default for argument "regions" (default has type "tuple[()]", argument has type "list[str]") [assignment] -install.py:0: error: Incompatible default for argument "systems" (default has type "tuple[()]", argument has type "list[str]") [assignment] -install.py:0: error: Incompatible default for argument "trees" (default has type "tuple[()]", argument has type "list[tuple[dict[Any, Any], dict[str, dict[Any, Any]]]]") [assignment] +install.py:0: error: Incompatible default for parameter "after" (default has type "tuple[()]", parameter has type "list[Any]") [assignment] +install.py:0: error: Incompatible default for parameter "copied" (default has type "tuple[()]", parameter has type "list[str]") [assignment] +install.py:0: error: Incompatible default for parameter "cores" (default has type "tuple[()]", parameter has type "list[str]") [assignment] +install.py:0: error: Incompatible default for parameter "footer" (default has type "tuple[()]", parameter has type "list[Any]") [assignment] +install.py:0: error: Incompatible default for parameter "omitted" (default has type "tuple[()]", parameter has type "list[dict[Any, Any]]") [assignment] +install.py:0: error: Incompatible default for parameter "pinned" (default has type "tuple[()]", parameter has type "list[Any]") [assignment] +install.py:0: error: Incompatible default for parameter "regions" (default has type "tuple[()]", parameter has type "list[str]") [assignment] +install.py:0: error: Incompatible default for parameter "systems" (default has type "tuple[()]", parameter has type "list[str]") [assignment] +install.py:0: error: Incompatible default for parameter "trees" (default has type "tuple[()]", parameter has type "list[tuple[dict[Any, Any], dict[str, dict[Any, Any]]]]") [assignment] +install.py:0: error: Incompatible return value type (got "Any | object", expected "str") [return-value] install.py:0: error: Incompatible return value type (got "IO[bytes]", expected "ContextManager[BinaryIO]") [return-value] -install.py:0: error: Incompatible return value type (got "Optional[Path]", expected "Path") [return-value] -install.py:0: error: Incompatible return value type (got "Union[Any, object]", expected "str") [return-value] +install.py:0: error: Incompatible return value type (got "Path | None", expected "Path") [return-value] install.py:0: error: Incompatible return value type (got "list[TuiLine]", expected "list[str]") [return-value] -install.py:0: error: Incompatible return value type (got "list[tuple[Optional[str], str]]", expected "list[tuple[str, str]]") [return-value] +install.py:0: error: Incompatible return value type (got "list[tuple[str | None, str]]", expected "list[tuple[str, str]]") [return-value] install.py:0: error: Incompatible return value type (got "object", expected "dict[Any, Any]") [return-value] install.py:0: error: Incompatible types in "yield" (actual type "IO[bytes]", expected type "BinaryIO") [misc] +install.py:0: error: Incompatible types in "yield" (actual type "tuple[str, int, Callable[[Any], IO[bytes] | None]]", expected type "tuple[str, int, Callable[[], BinaryIO]]") [misc] install.py:0: error: Incompatible types in "yield" (actual type "tuple[str, int, Callable[[Any], IO[bytes]]]", expected type "tuple[str, int, Callable[[], BinaryIO]]") [misc] -install.py:0: error: Incompatible types in "yield" (actual type "tuple[str, int, Callable[[Any], Optional[IO[bytes]]]]", expected type "tuple[str, int, Callable[[], BinaryIO]]") [misc] +install.py:0: error: Incompatible types in assignment (expression has type "Any | bool", variable has type "str") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "Any | list[Any]", variable has type "set[str]") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "FolderIndex", base class "tuple" defined the type as "Callable[[Any, SupportsIndex, SupportsIndex], int]") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "FolderIndex", base class "tuple" defined the type as "Callable[[Any, SupportsIndex, SupportsIndex], int]") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "FolderIndex", variable has type "int") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "GamesChoice", variable has type "Optional[tuple[list[str], list[str], list[str]]]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "GamesChoice", variable has type "Optional[tuple[list[str], list[str], list[str]]]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "GamesChoice", variable has type "Optional[tuple[list[str], list[str], list[str]]]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Optional[Progress]", variable has type "Progress") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Optional[frozenset[Any]]", variable has type "Optional[tuple[int, str]]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Optional[frozenset[Any]]", variable has type "list[str]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "GamesChoice", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "GamesChoice", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "GamesChoice", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "Path", variable has type "bool") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Union[Any, bool]", variable has type "str") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Union[Any, list[Any]]", variable has type "set[str]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "Union[tuple[list[str], list[str], list[str]], str, GamesChoice, None]", variable has type "Optional[tuple[list[str], list[str], list[str]]]") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "Progress | None", variable has type "Progress") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "_TemporaryFileWrapper[bytes]", variable has type "_Unclosed") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "float", variable has type "Optional[int]") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "float", variable has type "int | None") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "frozenset[Any] | None", variable has type "list[str]") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "frozenset[Any] | None", variable has type "tuple[int, str] | None") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Any, SupportsIndex, SupportsIndex], int]") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "int", base class "tuple" defined the type as "Callable[[Any], int]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "list[dict[Any, Any]]") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "list[dict[Any, Any]] | list[dict[Any, Any] | Any]") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "list[dict[Any, Any]]", variable has type "int") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "list[dict[Any, Any] | Any]", variable has type "int") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "list[str]", variable has type "Invocation") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "set[int]", variable has type "int") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "set[int]", variable has type "list[dict[Any, Any]]") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "set[int]", variable has type "list[dict[Any, Any]]") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "str", target has type "int") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "Optional[Path]") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "Optional[tuple[list[str], list[str], list[str]]]") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "Path | None") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "bool") [assignment] -install.py:0: error: Incompatible types in assignment (expression has type "tuple[int, str]", variable has type "Optional[frozenset[Any]]") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "tuple[int, str]", variable has type "frozenset[Any] | None") [assignment] +install.py:0: error: Incompatible types in assignment (expression has type "tuple[list[str], list[str], list[str]] | str | GamesChoice | None", variable has type "tuple[list[str], list[str], list[str]] | None") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "tuple[tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any]]", variable has type "tuple[tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any]]") [assignment] install.py:0: error: Incompatible types in assignment (expression has type "tuple[tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any]]", variable has type "tuple[tuple[str, Any], tuple[str, Any], tuple[str, Any], tuple[str, Any]]") [assignment] -install.py:0: error: Item "None" of "Optional[BinaryIO]" has no attribute "truncate" [union-attr] -install.py:0: error: Item "None" of "Optional[Element[str]]" has no attribute "iter" [union-attr] -install.py:0: error: Item "None" of "Optional[PackSource]" has no attribute "name" [union-attr] -install.py:0: error: Item "None" of "Optional[PackSource]" has no attribute "name" [union-attr] -install.py:0: error: Item "None" of "Optional[Path]" has no attribute "read_text" [union-attr] -install.py:0: error: Item "None" of "Optional[Path]" has no attribute "write_text" [union-attr] -install.py:0: error: Item "None" of "Optional[Terminal]" has no attribute "stream" [union-attr] -install.py:0: error: Item "None" of "Optional[Terminal]" has no attribute "stream" [union-attr] -install.py:0: error: Item "None" of "Optional[Terminal]" has no attribute "stream" [union-attr] -install.py:0: error: Item "None" of "Optional[Terminal]" has no attribute "stream" [union-attr] -install.py:0: error: Item "None" of "Optional[TuiHits]" has no attribute "frame" [union-attr] -install.py:0: error: Item "None" of "Optional[TuiHits]" has no attribute "shown" [union-attr] +install.py:0: error: Item "None" of "BinaryIO | None" has no attribute "truncate" [union-attr] +install.py:0: error: Item "None" of "Element[str] | None" has no attribute "iter" [union-attr] +install.py:0: error: Item "None" of "PackSource | None" has no attribute "name" [union-attr] +install.py:0: error: Item "None" of "PackSource | None" has no attribute "name" [union-attr] +install.py:0: error: Item "None" of "Path | None" has no attribute "read_text" [union-attr] +install.py:0: error: Item "None" of "Path | None" has no attribute "write_text" [union-attr] +install.py:0: error: Item "None" of "Terminal | None" has no attribute "stream" [union-attr] +install.py:0: error: Item "None" of "Terminal | None" has no attribute "stream" [union-attr] +install.py:0: error: Item "None" of "Terminal | None" has no attribute "stream" [union-attr] +install.py:0: error: Item "None" of "Terminal | None" has no attribute "stream" [union-attr] +install.py:0: error: Item "None" of "TuiHits | None" has no attribute "frame" [union-attr] +install.py:0: error: Item "None" of "TuiHits | None" has no attribute "shown" [union-attr] install.py:0: error: List comprehension has incompatible type List[object]; expected List[str] [misc] install.py:0: error: List item 0 has incompatible type "int"; expected "FolderIndex" [list-item] -install.py:0: error: List item 0 has incompatible type "tuple[Optional[str], str]"; expected "tuple[str, str]" [list-item] -install.py:0: error: List item 0 has incompatible type "tuple[Optional[str], str]"; expected "tuple[str, str]" [list-item] -install.py:0: error: List item 3 has incompatible type "tuple[Optional[str], str]"; expected "tuple[str, str]" [list-item] +install.py:0: error: List item 0 has incompatible type "tuple[str | None, str]"; expected "tuple[str, str]" [list-item] +install.py:0: error: List item 0 has incompatible type "tuple[str | None, str]"; expected "tuple[str, str]" [list-item] +install.py:0: error: List item 3 has incompatible type "tuple[str | None, str]"; expected "tuple[str, str]" [list-item] install.py:0: error: Module has no attribute "HKEY_CURRENT_USER" [attr-defined] install.py:0: error: Module has no attribute "HKEY_LOCAL_MACHINE" [attr-defined] install.py:0: error: Module has no attribute "LK_NBLCK" [attr-defined] @@ -165,20 +165,20 @@ install.py:0: error: Unsupported operand types for / ("Path" and "None") [opera install.py:0: error: Unsupported operand types for > ("str" and "int") [operator] install.py:0: error: Unsupported operand types for in ("object" and "str") [operator] install.py:0: error: Unsupported right operand type for in ("int") [operator] -install.py:0: error: Value of type "Optional[Match[str]]" is not indexable [index] -install.py:0: error: Value of type "Optional[Match[str]]" is not indexable [index] -install.py:0: error: Value of type "Optional[dict[Any, Any]]" is not indexable [index] -install.py:0: error: Value of type "Optional[tuple[str, str]]" is not indexable [index] -install.py:0: error: Value of type "Optional[tuple[str, str]]" is not indexable [index] -install.py:0: error: Value of type "Optional[tuple[str, str]]" is not indexable [index] -install.py:0: error: Value of type "Optional[tuple[str, str]]" is not indexable [index] -install.py:0: error: Value of type "Optional[tuple[str, str]]" is not indexable [index] -install.py:0: error: Value of type "Optional[tuple[str, str]]" is not indexable [index] -install.py:0: error: Value of type "Optional[tuple[str, str]]" is not indexable [index] +install.py:0: error: Value of type "Match[str] | None" is not indexable [index] +install.py:0: error: Value of type "Match[str] | None" is not indexable [index] +install.py:0: error: Value of type "dict[Any, Any] | None" is not indexable [index] install.py:0: error: Value of type "object" is not indexable [index] install.py:0: error: Value of type "object" is not indexable [index] +install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] +install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] +install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] +install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] +install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] +install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] +install.py:0: error: Value of type "tuple[str, str] | None" is not indexable [index] install.py:0: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "object" [type-var] -install.py:0: error: Value of type variable "SupportsRichComparisonT" of "sorted" cannot be "Optional[Any]" [type-var] +install.py:0: error: Value of type variable "SupportsRichComparisonT" of "sorted" cannot be "Any | None" [type-var] scripts/campaign.py:0: error: "object" has no attribute "__enter__" [attr-defined] scripts/campaign.py:0: error: "object" has no attribute "__enter__" [attr-defined] scripts/campaign.py:0: error: "object" has no attribute "__enter__" [attr-defined] @@ -188,7 +188,7 @@ scripts/campaign.py:0: error: "object" has no attribute "__exit__" [attr-define scripts/campaign.py:0: error: "object" has no attribute "decode" [attr-defined] scripts/campaign.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "bytes") [assignment] scripts/campaign.py:0: error: Invalid index type "bytes" for "dict[str, str]"; expected type "str" [index] -scripts/campaign.py:0: error: Item "None" of "Optional[dict[Any, Any]]" has no attribute "get" [union-attr] +scripts/campaign.py:0: error: Item "None" of "dict[Any, Any] | None" has no attribute "get" [union-attr] scripts/campaign.py:0: error: No overload variant of "Popen" matches argument types "list[str]", "bool", "dict[str, object]" [call-overload] scripts/campaign.py:0: error: Unpacked dict entry 0 has incompatible type "object"; expected "SupportsKeysAndGetItem[Any, Any]" [dict-item] scripts/campaign.py:0: error: Unsupported operand types for / ("Path" and "bytes") [operator] @@ -198,40 +198,40 @@ scripts/campaign_profiles.py:0: error: Incompatible types in assignment (express scripts/campaign_profiles.py:0: error: Incompatible types in assignment (expression has type "tuple[str, int]", target has type "tuple[int, int]") [assignment] scripts/campaign_profiles.py:0: error: Unsupported operand types for + ("str" and "int") [operator] scripts/campaign_rules.py:0: error: "object" not callable [operator] -scripts/campaign_rules.py:0: error: Argument 1 to "get" of "dict" has incompatible type "Optional[str]"; expected "str" [arg-type] +scripts/campaign_rules.py:0: error: Argument 1 to "get" of "dict" has incompatible type "str | None"; expected "str" [arg-type] scripts/campaign_rules.py:0: error: No overload variant of "set" matches argument type "object" [call-overload] scripts/check_freshness.py:0: error: Argument 2 to "unresolved_target_cores" has incompatible type "dict[str, set[str]]"; expected "dict[str, str]" [arg-type] scripts/check_freshness.py:0: error: Argument 2 to "unresolved_target_cores" has incompatible type "dict[str, set[str]]"; expected "dict[str, str]" [arg-type] scripts/check_freshness.py:0: error: Argument 2 to "unresolved_target_cores" has incompatible type "dict[str, set[str]]"; expected "dict[str, str]" [arg-type] scripts/check_freshness.py:0: error: Argument 2 to "unresolved_target_cores" has incompatible type "dict[str, set[str]]"; expected "dict[str, str]" [arg-type] -scripts/check_freshness.py:0: error: Item "None" of "Optional[Match[str]]" has no attribute "group" [union-attr] +scripts/check_freshness.py:0: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr] scripts/check_freshness.py:0: error: Need type annotation for "overrides" (hint: "overrides: dict[, ] = ...") [var-annotated] -scripts/check_platform_folder.py:0: error: Argument 1 to "exit" has incompatible type "Union[str, HTTPError]"; expected "Union[str, int, None]" [arg-type] -scripts/check_platform_folder.py:0: error: Argument 1 to "read" of "ZipFile" has incompatible type "Optional[str]"; expected "Union[str, ZipInfo]" [arg-type] +scripts/check_platform_folder.py:0: error: Argument 1 to "exit" has incompatible type "str | HTTPError"; expected "str | int | None" [arg-type] +scripts/check_platform_folder.py:0: error: Argument 1 to "read" of "ZipFile" has incompatible type "str | None"; expected "str | ZipInfo" [arg-type] scripts/check_platform_folder.py:0: error: Incompatible types in assignment (expression has type "list[str]", variable has type "dict[str, str]") [assignment] -scripts/check_release_assets.py:0: error: Argument 1 to "get" of "dict" has incompatible type "Optional[str]"; expected "str" [arg-type] +scripts/check_release_assets.py:0: error: Argument 1 to "get" of "dict" has incompatible type "str | None"; expected "str" [arg-type] scripts/common.py:0: error: Argument "sha1_candidates" to "declared_hash_verdict" has incompatible type "list[str]"; expected "set[Any]" [arg-type] scripts/common.py:0: error: Argument "sha256_candidates" to "declared_hash_verdict" has incompatible type "list[str]"; expected "set[Any]" [arg-type] -scripts/common.py:0: error: Incompatible return value type (got "str", expected "tuple[Optional[str], str]") [return-value] -scripts/common.py:0: error: Incompatible return value type (got "str", expected "tuple[Optional[str], str]") [return-value] -scripts/common.py:0: error: Incompatible types in assignment (expression has type "Optional[tuple[str, str]]", variable has type "Optional[str]") [assignment] -scripts/common.py:0: error: Incompatible types in assignment (expression has type "Optional[tuple[str, str]]", variable has type "Optional[str]") [assignment] +scripts/common.py:0: error: Incompatible return value type (got "str", expected "tuple[str | None, str]") [return-value] +scripts/common.py:0: error: Incompatible return value type (got "str", expected "tuple[str | None, str]") [return-value] +scripts/common.py:0: error: Incompatible types in assignment (expression has type "tuple[str, str] | None", variable has type "str | None") [assignment] +scripts/common.py:0: error: Incompatible types in assignment (expression has type "tuple[str, str] | None", variable has type "str | None") [assignment] scripts/common.py:0: error: Name "folded" already defined on line 0 [no-redef] scripts/common.py:0: error: Unsupported left operand type for & ("None") [operator] -scripts/core_probe.py:0: error: Incompatible types in assignment (expression has type "list[list[Any]]", target has type "Optional[str]") [assignment] -scripts/core_probe.py:0: error: Incompatible types in assignment (expression has type "list[str]", target has type "Optional[str]") [assignment] -scripts/core_probe.py:0: error: Item "None" of "Optional[Path]" has no attribute "name" [union-attr] -scripts/core_probe.py:0: error: Item "None" of "Optional[Path]" has no attribute "open" [union-attr] +scripts/core_probe.py:0: error: Incompatible types in assignment (expression has type "list[list[Any]]", target has type "str | None") [assignment] +scripts/core_probe.py:0: error: Incompatible types in assignment (expression has type "list[str]", target has type "str | None") [assignment] +scripts/core_probe.py:0: error: Item "None" of "Path | None" has no attribute "name" [union-attr] +scripts/core_probe.py:0: error: Item "None" of "Path | None" has no attribute "open" [union-attr] scripts/core_probe.py:0: error: Need type annotation for "info" [var-annotated] -scripts/core_probe.py:0: error: Value of type "Optional[Any]" is not indexable [index] +scripts/core_probe.py:0: error: Value of type "Any | None" is not indexable [index] scripts/cross_reference.py:0: error: Need type annotation for "declared" (hint: "declared: dict[, ] = ...") [var-annotated] scripts/cross_reference.py:0: error: Need type annotation for "platform_data_dirs" (hint: "platform_data_dirs: dict[, ] = ...") [var-annotated] scripts/cross_reference.py:0: error: Need type annotation for "report" (hint: "report: dict[, ] = ...") [var-annotated] scripts/dedup.py:0: error: "Sequence[str]" has no attribute "append" [attr-defined] scripts/derivations.py:0: error: Argument 1 to "_gf2_times" has incompatible type "tuple[int, ...]"; expected "list[int]" [arg-type] scripts/derivations.py:0: error: Argument 1 to "_gf2_times" has incompatible type "tuple[int, ...]"; expected "list[int]" [arg-type] -scripts/derivations.py:0: error: Argument 1 to "get" of "dict" has incompatible type "tuple[Optional[int], str]"; expected "tuple[int, str]" [arg-type] -scripts/derivations.py:0: error: Incompatible types in assignment (expression has type "Optional[ZipFile]", variable has type "ZipFile") [assignment] +scripts/derivations.py:0: error: Argument 1 to "get" of "dict" has incompatible type "tuple[int | None, str]"; expected "tuple[int, str]" [arg-type] +scripts/derivations.py:0: error: Incompatible types in assignment (expression has type "ZipFile | None", variable has type "ZipFile") [assignment] scripts/dumpcatalog.py:0: error: Need type annotation for "snapshots" (hint: "snapshots: dict[, ] = ...") [var-annotated] scripts/export_native.py:0: error: "object" has no attribute "carries" [attr-defined] scripts/export_native.py:0: error: "object" has no attribute "clears" [attr-defined] @@ -259,33 +259,33 @@ scripts/export_native.py:0: error: "object" has no attribute "states" [attr-def scripts/export_native.py:0: error: "object" has no attribute "written" [attr-defined] scripts/export_native.py:0: error: "object" has no attribute "written_list" [attr-defined] scripts/export_native.py:0: error: "object" has no attribute "written_list" [attr-defined] -scripts/export_native.py:0: error: Argument 1 to "_read_archive" has incompatible type "Optional[Any]"; expected "Callable[[bytes], dict[str, str]]" [arg-type] -scripts/export_native.py:0: error: Argument 1 to "_read_archive" has incompatible type "Optional[Any]"; expected "Callable[[bytes], dict[str, str]]" [arg-type] -scripts/exporter/baseline.py:0: error: Incompatible types in assignment (expression has type "Optional[int]", variable has type "int") [assignment] +scripts/export_native.py:0: error: Argument 1 to "_read_archive" has incompatible type "Any | None"; expected "Callable[[bytes], dict[str, str]]" [arg-type] +scripts/export_native.py:0: error: Argument 1 to "_read_archive" has incompatible type "Any | None"; expected "Callable[[bytes], dict[str, str]]" [arg-type] +scripts/exporter/baseline.py:0: error: Incompatible types in assignment (expression has type "int | None", variable has type "int") [assignment] scripts/exporter/baseline.py:0: error: No overload variant of "int" matches argument type "object" [call-overload] scripts/exporter/batocera_exporter.py:0: error: Argument 1 to "append" of "list" has incompatible type "tuple[tuple[Any, ...], str]"; expected "tuple[tuple[Any, ...], dict[Any, Any]]" [arg-type] -scripts/exporter/batocera_exporter.py:0: error: Incompatible types in assignment (expression has type "Optional[tuple[str, Optional[str]]]", target has type "Optional[tuple[str, str]]") [assignment] scripts/exporter/batocera_exporter.py:0: error: Incompatible types in assignment (expression has type "dict[Any, Any]", variable has type "str") [assignment] -scripts/exporter/batocera_exporter.py:0: error: Item "None" of "Optional[Match[str]]" has no attribute "group" [union-attr] -scripts/exporter/batocera_exporter.py:0: error: Item "None" of "Union[Any, dict[Any, Any], None]" has no attribute "get" [union-attr] +scripts/exporter/batocera_exporter.py:0: error: Incompatible types in assignment (expression has type "tuple[str, str | None] | None", target has type "tuple[str, str] | None") [assignment] +scripts/exporter/batocera_exporter.py:0: error: Item "None" of "Any | dict[Any, Any] | None" has no attribute "get" [union-attr] +scripts/exporter/batocera_exporter.py:0: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr] scripts/exporter/batocera_exporter.py:0: error: Signature of "writable" incompatible with supertype "scripts.exporter.base_exporter.BaseExporter" [override] scripts/exporter/misterfpga_exporter.py:0: error: "object" has no attribute "size" [attr-defined] scripts/exporter/misterfpga_exporter.py:0: error: Argument 1 to "written" of "Exporter" has incompatible type "object"; expected "NativeFile" [arg-type] scripts/exporter/misterfpga_exporter.py:0: error: Argument 1 to "written" of "Exporter" has incompatible type "object"; expected "NativeFile" [arg-type] -scripts/exporter/misterfpga_exporter.py:0: error: Return type "dict[str, Union[str, bytes]]" of "render" incompatible with return type "dict[str, str]" in supertype "scripts.exporter.base_exporter.BaseExporter" [override] +scripts/exporter/misterfpga_exporter.py:0: error: Return type "dict[str, str | bytes]" of "render" incompatible with return type "dict[str, str]" in supertype "scripts.exporter.base_exporter.BaseExporter" [override] scripts/exporter/retrodeck_exporter.py:0: error: Argument 1 to "add" of "set" has incompatible type "tuple[str, str]"; expected "tuple[str, str, tuple[str, ...]]" [arg-type] scripts/exporter/retrodeck_exporter.py:0: error: Incompatible types in assignment (expression has type "dict[Any, Any]", variable has type "OrderedDict[Any, Any]") [assignment] scripts/exporter/retrodeck_exporter.py:0: error: Incompatible types in assignment (expression has type "dict[Any, Any]", variable has type "OrderedDict[Any, Any]") [assignment] scripts/exporter/retrodeck_exporter.py:0: error: Incompatible types in assignment (expression has type "tuple[str, str, tuple[str, ...]]", variable has type "tuple[str, str]") [assignment] scripts/exporter/retropie_exporter.py:0: error: "object" has no attribute "__iter__"; maybe "__dir__" or "__str__"? (not iterable) [attr-defined] scripts/exporter/retropie_exporter.py:0: error: "object" has no attribute "__iter__"; maybe "__dir__" or "__str__"? (not iterable) [attr-defined] -scripts/exporter/retropie_exporter.py:0: error: Argument 2 to "_extended" of "Exporter" has incompatible type "Optional[tuple[int, int, list[str]]]"; expected "tuple[int, int, list[str]]" [arg-type] +scripts/exporter/retropie_exporter.py:0: error: Argument 2 to "_extended" of "Exporter" has incompatible type "tuple[int, int, list[str]] | None"; expected "tuple[int, int, list[str]]" [arg-type] scripts/exporter/retropie_exporter.py:0: error: Expected iterable as variadic argument [misc] -scripts/exporter/retropie_exporter.py:0: error: Value of type "Optional[tuple[int, int, list[str]]]" is not indexable [index] -scripts/exporter/retropie_exporter.py:0: error: Value of type "Optional[tuple[int, int, list[str]]]" is not indexable [index] -scripts/exporter/retropie_exporter.py:0: error: Value of type "Optional[tuple[int, int, list[str]]]" is not indexable [index] +scripts/exporter/retropie_exporter.py:0: error: Value of type "tuple[int, int, list[str]] | None" is not indexable [index] +scripts/exporter/retropie_exporter.py:0: error: Value of type "tuple[int, int, list[str]] | None" is not indexable [index] +scripts/exporter/retropie_exporter.py:0: error: Value of type "tuple[int, int, list[str]] | None" is not indexable [index] scripts/exporter/romm_exporter.py:0: error: Signature of "writable" incompatible with supertype "scripts.exporter.base_exporter.BaseExporter" [override] -scripts/game_rules.py:0: error: Item "None" of "Optional[dict[str, dict[Any, Any]]]" has no attribute "get" [union-attr] +scripts/game_rules.py:0: error: Item "None" of "dict[str, dict[Any, Any]] | None" has no attribute "get" [union-attr] scripts/generate_db.py:0: error: Name "matched" already defined on line 0 [no-redef] scripts/generate_db.py:0: error: Need type annotation for "aliases" (hint: "aliases: dict[, ] = ...") [var-annotated] scripts/generate_db.py:0: error: Need type annotation for "aliases" (hint: "aliases: dict[, ] = ...") [var-annotated] @@ -293,70 +293,70 @@ scripts/generate_db.py:0: error: Need type annotation for "by_name" (hint: "by_n scripts/generate_db.py:0: error: Need type annotation for "by_path_suffix" (hint: "by_path_suffix: dict[, ] = ...") [var-annotated] scripts/generate_db.py:0: error: Need type annotation for "files" (hint: "files: dict[, ] = ...") [var-annotated] scripts/generate_db.py:0: error: Unsupported left operand type for | ("None") [operator] -scripts/generate_event_schema.py:0: error: Argument 1 to "module_from_spec" has incompatible type "Optional[ModuleSpec]"; expected "ModuleSpec" [arg-type] -scripts/generate_event_schema.py:0: error: Item "None" of "Optional[ModuleSpec]" has no attribute "loader" [union-attr] -scripts/generate_event_schema.py:0: error: Item "None" of "Union[Loader, Any, None]" has no attribute "exec_module" [union-attr] -scripts/generate_games_index.py:0: error: Argument 1 to "fallback_set" has incompatible type "Optional[dict[Any, Any]]"; expected "dict[Any, Any]" [arg-type] +scripts/generate_event_schema.py:0: error: Argument 1 to "module_from_spec" has incompatible type "ModuleSpec | None"; expected "ModuleSpec" [arg-type] +scripts/generate_event_schema.py:0: error: Item "None" of "Loader | Any | None" has no attribute "exec_module" [union-attr] +scripts/generate_event_schema.py:0: error: Item "None" of "ModuleSpec | None" has no attribute "loader" [union-attr] +scripts/generate_games_index.py:0: error: Argument 1 to "fallback_set" has incompatible type "dict[Any, Any] | None"; expected "dict[Any, Any]" [arg-type] scripts/generate_installer_doc.py:0: error: "object" has no attribute "add" [attr-defined] scripts/generate_installer_doc.py:0: error: Argument 1 to "__init__" of "SimpleHTTPRequestHandler" has incompatible type "*tuple[object, ...]"; expected "BaseServer" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 1 to "__init__" of "SimpleHTTPRequestHandler" has incompatible type "*tuple[object, ...]"; expected "Union[socket, tuple[bytes, socket]]" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 1 to "enter_context" of "_BaseExitStack" has incompatible type "object"; expected "AbstractContextManager[Never, Optional[bool]]" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 1 to "join" of "str" has incompatible type "Union[bool, list[str], str, None]"; expected "Iterable[str]" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 1 to "module_from_spec" has incompatible type "Optional[ModuleSpec]"; expected "ModuleSpec" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 1 to "__init__" of "SimpleHTTPRequestHandler" has incompatible type "*tuple[object, ...]"; expected "socket | tuple[bytes, socket]" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 1 to "enter_context" of "_BaseExitStack" has incompatible type "object"; expected "AbstractContextManager[Never, bool | None]" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 1 to "join" of "str" has incompatible type "bool | list[str] | str | None"; expected "Iterable[str]" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 1 to "module_from_spec" has incompatible type "ModuleSpec | None"; expected "ModuleSpec" [arg-type] scripts/generate_installer_doc.py:0: error: Argument 1 to "sample_writers" has incompatible type "_LazySandbox"; expected "Sandbox" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 1 to "startswith" of "str" has incompatible type "Optional[str]"; expected "Union[str, tuple[str, ...]]" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 2 has incompatible type "*tuple[object, ...]"; expected "Optional[Union[tuple[Any, ...], str, Buffer]]" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 2 has incompatible type "*tuple[object, ...]"; expected "Optional[float]" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 3 has incompatible type "**dict[str, object]"; expected "Optional[Union[tuple[Any, ...], str, Buffer]]" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 3 has incompatible type "**dict[str, object]"; expected "Optional[float]" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 1 to "startswith" of "str" has incompatible type "str | None"; expected "str | tuple[str, ...]" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 2 has incompatible type "*tuple[object, ...]"; expected "float | None" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 2 has incompatible type "*tuple[object, ...]"; expected "tuple[Any, ...] | str | Buffer | None" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 3 has incompatible type "**dict[str, object]"; expected "float | None" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 3 has incompatible type "**dict[str, object]"; expected "tuple[Any, ...] | str | Buffer | None" [arg-type] scripts/generate_installer_doc.py:0: error: Argument 3 to "__init__" of "SimpleHTTPRequestHandler" has incompatible type "**dict[str, object]"; expected "BaseServer" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 3 to "__init__" of "SimpleHTTPRequestHandler" has incompatible type "**dict[str, object]"; expected "Union[socket, tuple[bytes, socket]]" [arg-type] -scripts/generate_installer_doc.py:0: error: Argument 3 to "run" of "Sandbox" has incompatible type "**dict[str, bool]"; expected "Optional[Path]" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 3 to "__init__" of "SimpleHTTPRequestHandler" has incompatible type "**dict[str, object]"; expected "socket | tuple[bytes, socket]" [arg-type] +scripts/generate_installer_doc.py:0: error: Argument 3 to "run" of "Sandbox" has incompatible type "**dict[str, bool]"; expected "Path | None" [arg-type] scripts/generate_installer_doc.py:0: error: Argument 3 to "run" of "Sandbox" has incompatible type "**dict[str, bool]"; expected "tuple[Any, ...]" [arg-type] scripts/generate_installer_doc.py:0: error: Incompatible return value type (got "tuple[int, ...]", expected "tuple[int, int]") [return-value] -scripts/generate_installer_doc.py:0: error: Incompatible types in assignment (expression has type "Union[str, bytes, bytearray]", variable has type "str") [assignment] -scripts/generate_installer_doc.py:0: error: Item "None" of "Optional[ModuleSpec]" has no attribute "loader" [union-attr] -scripts/generate_installer_doc.py:0: error: Item "None" of "Union[Loader, Any, None]" has no attribute "exec_module" [union-attr] +scripts/generate_installer_doc.py:0: error: Incompatible types in assignment (expression has type "str | bytes | bytearray", variable has type "str") [assignment] +scripts/generate_installer_doc.py:0: error: Item "None" of "Loader | Any | None" has no attribute "exec_module" [union-attr] +scripts/generate_installer_doc.py:0: error: Item "None" of "ModuleSpec | None" has no attribute "loader" [union-attr] scripts/generate_installer_doc.py:0: error: Name "_install._OsRule" is not defined [name-defined] -scripts/generate_launcher_index.py:0: error: Argument 1 to "module_from_spec" has incompatible type "Optional[ModuleSpec]"; expected "ModuleSpec" [arg-type] -scripts/generate_launcher_index.py:0: error: Item "None" of "Optional[ModuleSpec]" has no attribute "loader" [union-attr] -scripts/generate_launcher_index.py:0: error: Item "None" of "Union[Loader, Any, None]" has no attribute "exec_module" [union-attr] -scripts/generate_pack.py:0: error: Argument 1 to "_narrowings" has incompatible type "Union[str, bool]"; expected "str" [arg-type] -scripts/generate_pack.py:0: error: Argument 1 to "_release_asset_name" has incompatible type "Optional[str]"; expected "str" [arg-type] -scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[bool]" [arg-type] -scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[dict[Any, Any]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[list[dict[Any, Any]]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[list[str]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[set[str]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[str]" [arg-type] -scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "bool" [arg-type] -scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "str" [arg-type] +scripts/generate_launcher_index.py:0: error: Argument 1 to "module_from_spec" has incompatible type "ModuleSpec | None"; expected "ModuleSpec" [arg-type] +scripts/generate_launcher_index.py:0: error: Item "None" of "Loader | Any | None" has no attribute "exec_module" [union-attr] +scripts/generate_launcher_index.py:0: error: Item "None" of "ModuleSpec | None" has no attribute "loader" [union-attr] +scripts/generate_pack.py:0: error: Argument 1 to "_narrowings" has incompatible type "str | bool"; expected "str" [arg-type] +scripts/generate_pack.py:0: error: Argument 1 to "_release_asset_name" has incompatible type "str | None"; expected "str" [arg-type] +scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "bool | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "bool" [arg-type] +scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "dict[Any, Any] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "list[dict[Any, Any]] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "list[str] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "set[str] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "str | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 10 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "str" [arg-type] scripts/generate_pack.py:0: error: Argument 4 to "_manifest_core_index" has incompatible type "dict_values[str, dict[Any, Any]]"; expected "list[dict[Any, Any]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 4 to "_narrowings" has incompatible type "Union[str, bool]"; expected "bool" [arg-type] -scripts/generate_pack.py:0: error: Argument 5 to "_narrowings" has incompatible type "Union[str, bool]"; expected "bool" [arg-type] -scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[bool]" [arg-type] -scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[dict[Any, Any]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[dict[str, str]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[list[dict[Any, Any]]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[list[str]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[set[str]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "Optional[str]" [arg-type] -scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "bool" [arg-type] -scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, Union[dict[Any, Any], Any, set[str], list[str], str, bool, None]]"; expected "str" [arg-type] -scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "Optional[bool]" [arg-type] -scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "Optional[dict[Any, Any]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "Optional[list[dict[Any, Any]]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "Optional[list[str]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "Optional[set[str]]" [arg-type] -scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "Optional[str]" [arg-type] +scripts/generate_pack.py:0: error: Argument 4 to "_narrowings" has incompatible type "str | bool"; expected "bool" [arg-type] +scripts/generate_pack.py:0: error: Argument 5 to "_narrowings" has incompatible type "str | bool"; expected "bool" [arg-type] +scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "bool | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "bool" [arg-type] +scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "dict[Any, Any] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "dict[str, str] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "list[dict[Any, Any]] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "list[str] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "set[str] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "str | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 7 to "generate_pack" has incompatible type "**dict[str, dict[Any, Any] | Any | set[str] | list[str] | str | bool | None]"; expected "str" [arg-type] +scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "bool | None" [arg-type] scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "bool" [arg-type] +scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "dict[Any, Any] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "list[dict[Any, Any]] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "list[str] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "set[str] | None" [arg-type] +scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "str | None" [arg-type] scripts/generate_pack.py:0: error: Argument 9 to "generate_pack" has incompatible type "**dict[str, object]"; expected "str" [arg-type] scripts/generate_pack.py:0: error: Need type annotation for "missing_files" (hint: "missing_files: list[] = ...") [var-annotated] -scripts/generate_pack.py:0: error: Unsupported target for indexed assignment ("Optional[dict[str, PackRecord]]") [index] +scripts/generate_pack.py:0: error: Unsupported target for indexed assignment ("dict[str, PackRecord] | None") [index] scripts/generate_readme.py:0: error: "object" has no attribute "TUI_SYSTEMS_ROW" [attr-defined] -scripts/generate_readme.py:0: error: Argument 1 to "module_from_spec" has incompatible type "Optional[ModuleSpec]"; expected "ModuleSpec" [arg-type] -scripts/generate_readme.py:0: error: Item "None" of "Optional[ModuleSpec]" has no attribute "loader" [union-attr] -scripts/generate_readme.py:0: error: Item "None" of "Union[Loader, Any, None]" has no attribute "exec_module" [union-attr] +scripts/generate_readme.py:0: error: Argument 1 to "module_from_spec" has incompatible type "ModuleSpec | None"; expected "ModuleSpec" [arg-type] +scripts/generate_readme.py:0: error: Item "None" of "Loader | Any | None" has no attribute "exec_module" [union-attr] +scripts/generate_readme.py:0: error: Item "None" of "ModuleSpec | None" has no attribute "loader" [union-attr] scripts/generate_site.py:0: error: "object" has no attribute "EVERYTHING_IN_PLACE" [attr-defined] scripts/generate_site.py:0: error: "object" has no attribute "TUI_CHOOSE_TITLE" [attr-defined] scripts/generate_site.py:0: error: "object" has no attribute "TUI_FOLDER_TITLE" [attr-defined] @@ -368,21 +368,16 @@ scripts/generate_site.py:0: error: "object" has no attribute "__iter__"; maybe " scripts/generate_site.py:0: error: "object" has no attribute "emulator_names" [attr-defined] scripts/generate_site.py:0: error: "object" has no attribute "values" [attr-defined] scripts/generate_site.py:0: error: "set[str]" has no attribute "get" [attr-defined] -scripts/generate_site.py:0: error: Argument 1 to "module_from_spec" has incompatible type "Optional[ModuleSpec]"; expected "ModuleSpec" [arg-type] +scripts/generate_site.py:0: error: Argument 1 to "module_from_spec" has incompatible type "ModuleSpec | None"; expected "ModuleSpec" [arg-type] scripts/generate_site.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "tuple[str, str, str]"; expected "tuple[str, str]" [arg-type] -scripts/generate_site.py:0: error: Argument 2 to "_version_said" has incompatible type "Union[Any, dict[Any, Any], None]"; expected "dict[Any, Any]" [arg-type] +scripts/generate_site.py:0: error: Argument 2 to "_version_said" has incompatible type "Any | dict[Any, Any] | None"; expected "dict[Any, Any]" [arg-type] scripts/generate_site.py:0: error: Argument 3 to "_blocks_in_runs" has incompatible type "Callable[[list[str]], float]"; expected "Callable[[list[str]], int]" [arg-type] -scripts/generate_site.py:0: error: Argument 3 to "_render_platform_systems" has incompatible type "Optional[dict[Any, Any]]"; expected "dict[Any, Any]" [arg-type] +scripts/generate_site.py:0: error: Argument 3 to "_render_platform_systems" has incompatible type "dict[Any, Any] | None"; expected "dict[Any, Any]" [arg-type] scripts/generate_site.py:0: error: Argument 4 to "_emulator_part_page" has incompatible type "list[str]"; expected "list[tuple[str, range]]" [arg-type] scripts/generate_site.py:0: error: Argument 5 to "_card_index" has incompatible type "list[str]"; expected "list[tuple[str, range]]" [arg-type] -scripts/generate_site.py:0: error: Cannot determine type of "entries" [has-type] -scripts/generate_site.py:0: error: Cannot determine type of "entries" [has-type] -scripts/generate_site.py:0: error: Cannot determine type of "entries" [has-type] -scripts/generate_site.py:0: error: Cannot determine type of "stem" [has-type] scripts/generate_site.py:0: error: Expected iterable as variadic argument [misc] scripts/generate_site.py:0: error: Generator has incompatible item type "int"; expected "bool" [misc] -scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "Optional[Any]", target has type "str") [assignment] -scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] +scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "Any | None", target has type "str") [assignment] scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "dict[Any, Any]", variable has type "int") [assignment] scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "dict[str, set[str]]", variable has type "set[str]") [assignment] scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "dict[str, str]", variable has type "dict[str, tuple[str, dict[str, list[Any]]]]") [assignment] @@ -391,25 +386,28 @@ scripts/generate_site.py:0: error: Incompatible types in assignment (expression scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "list[str]", variable has type "str") [assignment] scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "list[str]", variable has type "str") [assignment] scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "list[str]", variable has type "str") [assignment] -scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "list[tuple[str, Any]]", variable has type "Optional[dict[Any, Any]]") [assignment] +scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "list[tuple[str, Any]]", variable has type "dict[Any, Any] | None") [assignment] scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "list[tuple[str, list[int]]]", variable has type "list[str]") [assignment] -scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "tuple[Any, Union[Any, str]]", variable has type "str") [assignment] +scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "tuple[Any, Any | str]", variable has type "str") [assignment] scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "tuple[str, dict[str, list[Any]]]", variable has type "str") [assignment] scripts/generate_site.py:0: error: Incompatible types in assignment (expression has type "tuple[str, str]", variable has type "tuple[str, str, str]") [assignment] scripts/generate_site.py:0: error: Invalid index type "str" for "dict[tuple[str, str], dict[Any, Any]]"; expected type "tuple[str, str]" [index] -scripts/generate_site.py:0: error: Item "None" of "Optional[ModuleSpec]" has no attribute "loader" [union-attr] -scripts/generate_site.py:0: error: Item "None" of "Optional[dict[Any, Any]]" has no attribute "__iter__" (not iterable) [union-attr] -scripts/generate_site.py:0: error: Item "None" of "Optional[str]" has no attribute "startswith" [union-attr] -scripts/generate_site.py:0: error: Item "None" of "Union[Any, dict[Any, Any], None]" has no attribute "get" [union-attr] -scripts/generate_site.py:0: error: Item "None" of "Union[Loader, Any, None]" has no attribute "exec_module" [union-attr] +scripts/generate_site.py:0: error: Item "None" of "Any | dict[Any, Any] | None" has no attribute "get" [union-attr] +scripts/generate_site.py:0: error: Item "None" of "Loader | Any | None" has no attribute "exec_module" [union-attr] +scripts/generate_site.py:0: error: Item "None" of "ModuleSpec | None" has no attribute "loader" [union-attr] +scripts/generate_site.py:0: error: Item "None" of "dict[Any, Any] | None" has no attribute "__iter__" (not iterable) [union-attr] +scripts/generate_site.py:0: error: Item "None" of "str | None" has no attribute "startswith" [union-attr] scripts/generate_site.py:0: error: Need type annotation for "arcade" (hint: "arcade: list[] = ...") [var-annotated] scripts/generate_site.py:0: error: Need type annotation for "links" (hint: "links: list[] = ...") [var-annotated] scripts/generate_site.py:0: error: Need type annotation for "machines" (hint: "machines: list[] = ...") [var-annotated] scripts/generate_site.py:0: error: Need type annotation for "record" [var-annotated] scripts/generate_site.py:0: error: Need type annotation for "sample" [var-annotated] +scripts/generate_site.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] +scripts/generate_site.py:0: error: No overload variant of "__getitem__" of "list" matches argument type "str" [call-overload] scripts/generate_site.py:0: error: No overload variant of "get" of "dict" matches argument type "str" [call-overload] -scripts/generate_site.py:0: error: Unpacking a string is disallowed [misc] -scripts/generate_site.py:0: error: Value of type "Optional[Match[str]]" is not indexable [index] +scripts/generate_site.py:0: error: Unpacking a string is disallowed [str-unpack] +scripts/generate_site.py:0: error: Value of type "Match[str] | None" is not indexable [index] scripts/generate_site.py:0: error: Value of type "int" is not indexable [index] scripts/generate_site.py:0: error: Value of type "int" is not indexable [index] scripts/generate_site.py:0: error: Value of type "int" is not indexable [index] @@ -421,10 +419,10 @@ scripts/generate_site.py:0: error: Value of type "int" is not indexable [index] scripts/generate_site.py:0: error: Value of type "int" is not indexable [index] scripts/generate_site.py:0: error: Value of type "object" is not indexable [index] scripts/hashing.py:0: error: No overload variant of "open" matches argument types "object", "str" [call-overload] -scripts/launchers.py:0: error: Argument 1 to "len" has incompatible type "Optional[list[str]]"; expected "Sized" [arg-type] -scripts/launchers.py:0: error: Incompatible types in assignment (expression has type "Optional[dict[Any, Any]]", variable has type "dict[Any, Any]") [assignment] -scripts/launchers.py:0: error: Item "None" of "Optional[list[str]]" has no attribute "__iter__" (not iterable) [union-attr] -scripts/measurement_records.py:0: error: Argument 1 to "add" of "set" has incompatible type "Optional[Any]"; expected "str" [arg-type] +scripts/launchers.py:0: error: Argument 1 to "len" has incompatible type "list[str] | None"; expected "Sized" [arg-type] +scripts/launchers.py:0: error: Incompatible types in assignment (expression has type "dict[Any, Any] | None", variable has type "dict[Any, Any]") [assignment] +scripts/launchers.py:0: error: Item "None" of "list[str] | None" has no attribute "__iter__" (not iterable) [union-attr] +scripts/measurement_records.py:0: error: Argument 1 to "add" of "set" has incompatible type "Any | None"; expected "str" [arg-type] scripts/migrate.py:0: error: Incompatible return value type (got "None", expected "tuple[Any, ...]") [return-value] scripts/migrate.py:0: error: Incompatible return value type (got "None", expected "tuple[Any, ...]") [return-value] scripts/migrate.py:0: error: Incompatible return value type (got "None", expected "tuple[Any, ...]") [return-value] @@ -434,21 +432,21 @@ scripts/migrate.py:0: error: Incompatible return value type (got "None", expecte scripts/migrate.py:0: error: Incompatible return value type (got "None", expected "tuple[Any, ...]") [return-value] scripts/pack_probe.py:0: error: Need type annotation for "out" (hint: "out: list[] = ...") [var-annotated] scripts/pack_probe.py:0: error: Need type annotation for "units" (hint: "units: list[] = ...") [var-annotated] -scripts/packextras.py:0: error: Argument 4 to "_emulator_ships" has incompatible type "Optional[dict[Any, Any]]"; expected "dict[Any, Any]" [arg-type] -scripts/packextras.py:0: error: Item "None" of "Optional[list[dict[Any, Any]]]" has no attribute "append" [union-attr] +scripts/packextras.py:0: error: Argument 4 to "_emulator_ships" has incompatible type "dict[Any, Any] | None"; expected "dict[Any, Any]" [arg-type] +scripts/packextras.py:0: error: Item "None" of "list[dict[Any, Any]] | None" has no attribute "append" [union-attr] scripts/packextras.py:0: error: Need type annotation for "profile" [var-annotated] -scripts/packresolve.py:0: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "str") [assignment] -scripts/packresolve.py:0: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "str") [assignment] -scripts/packverify.py:0: error: Incompatible types in assignment (expression has type "Union[Any, str, None]", variable has type "str") [assignment] +scripts/packresolve.py:0: error: Incompatible types in assignment (expression has type "Any | None", variable has type "str") [assignment] +scripts/packresolve.py:0: error: Incompatible types in assignment (expression has type "Any | None", variable has type "str") [assignment] +scripts/packverify.py:0: error: Incompatible types in assignment (expression has type "Any | str | None", variable has type "str") [assignment] scripts/packverify.py:0: error: Incompatible types in assignment (expression has type "dict[str, str]", variable has type "str") [assignment] -scripts/packverify.py:0: error: Invalid index type "str" for "str"; expected type "Union[SupportsIndex, slice[Any, Any, Any]]" [index] +scripts/packverify.py:0: error: Invalid index type "str" for "str"; expected type "SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None]" [index] scripts/packverify.py:0: error: Need type annotation for "errors" (hint: "errors: list[] = ...") [var-annotated] scripts/packverify.py:0: error: Unsupported target for indexed assignment ("str") [index] scripts/pipeline.py:0: error: "object" has no attribute "members" [attr-defined] scripts/pipeline.py:0: error: "object" has no attribute "members" [attr-defined] scripts/pipeline.py:0: error: "object" has no attribute "sources" [attr-defined] scripts/pipeline.py:0: error: "object" has no attribute "sources" [attr-defined] -scripts/pipeline.py:0: error: Item "None" of "Optional[IO[str]]" has no attribute "__iter__" (not iterable) [union-attr] +scripts/pipeline.py:0: error: Item "None" of "IO[str] | None" has no attribute "__iter__" (not iterable) [union-attr] scripts/profile_sync.py:0: error: "list[tuple[int, int, str]]" has no attribute "items" [attr-defined] scripts/profile_sync.py:0: error: "object" has no attribute "host" [attr-defined] scripts/profile_sync.py:0: error: "object" has no attribute "host" [attr-defined] @@ -481,49 +479,49 @@ scripts/profile_sync.py:0: error: "object" has no attribute "slug" [attr-define scripts/profile_sync.py:0: error: "object" has no attribute "slug" [attr-defined] scripts/profile_sync.py:0: error: "object" has no attribute "slug" [attr-defined] scripts/profile_sync.py:0: error: "object" object is not iterable [misc] -scripts/profile_sync.py:0: error: Argument "entry" to "Citation" has incompatible type "Union[dict[Any, Any], list[Any]]"; expected "Optional[dict[Any, Any]]" [arg-type] -scripts/profile_sync.py:0: error: Argument 1 to "_anchor_tokens" has incompatible type "Optional[dict[Any, Any]]"; expected "dict[Any, Any]" [arg-type] +scripts/profile_sync.py:0: error: Argument "entry" to "Citation" has incompatible type "dict[Any, Any] | list[Any]"; expected "dict[Any, Any] | None" [arg-type] +scripts/profile_sync.py:0: error: Argument 1 to "_anchor_tokens" has incompatible type "dict[Any, Any] | None"; expected "dict[Any, Any]" [arg-type] scripts/profile_sync.py:0: error: Argument 1 to "append" of "list" has incompatible type "object"; expected "str" [arg-type] -scripts/profile_sync.py:0: error: Argument 1 to "entry_hashes" has incompatible type "Optional[dict[Any, Any]]"; expected "dict[Any, Any]" [arg-type] -scripts/profile_sync.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "Optional[int]"; expected "int" [arg-type] -scripts/profile_sync.py:0: error: Argument 1 to "version_tag_candidates" has incompatible type "Optional[Any]"; expected "str" [arg-type] -scripts/profile_sync.py:0: error: Argument 4 to "RepoView" has incompatible type "Optional[str]"; expected "str" [arg-type] -scripts/profile_sync.py:0: error: Argument 4 to "_set_pin" has incompatible type "Optional[str]"; expected "str" [arg-type] -scripts/profile_sync.py:0: error: Argument 4 to "_set_pin" has incompatible type "Optional[str]"; expected "str" [arg-type] +scripts/profile_sync.py:0: error: Argument 1 to "entry_hashes" has incompatible type "dict[Any, Any] | None"; expected "dict[Any, Any]" [arg-type] +scripts/profile_sync.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "int | None"; expected "int" [arg-type] +scripts/profile_sync.py:0: error: Argument 1 to "version_tag_candidates" has incompatible type "Any | None"; expected "str" [arg-type] +scripts/profile_sync.py:0: error: Argument 4 to "RepoView" has incompatible type "str | None"; expected "str" [arg-type] +scripts/profile_sync.py:0: error: Argument 4 to "_set_pin" has incompatible type "str | None"; expected "str" [arg-type] +scripts/profile_sync.py:0: error: Argument 4 to "_set_pin" has incompatible type "str | None"; expected "str" [arg-type] scripts/profile_sync.py:0: error: Cannot determine type of "actual" [has-type] scripts/profile_sync.py:0: error: Cannot determine type of "old_lines" [has-type] scripts/profile_sync.py:0: error: Cannot infer type of lambda [misc] scripts/profile_sync.py:0: error: Cannot infer type of lambda [misc] scripts/profile_sync.py:0: error: Incompatible return value type (got "object", expected "tuple[Any, list[str]]") [return-value] scripts/profile_sync.py:0: error: Incompatible types in assignment (expression has type "dict[int, list[Any]]", variable has type "list[tuple[int, int, str]]") [assignment] -scripts/profile_sync.py:0: error: Invalid index type "Optional[int]" for "list[str]"; expected type "SupportsIndex" [index] -scripts/profile_sync.py:0: error: Invalid index type "tuple[str, Optional[int], tuple[Any, ...], str]" for "dict[tuple[str, Optional[int]], tuple[RepoView, str]]"; expected type "tuple[str, Optional[int]]" [index] -scripts/profile_sync.py:0: error: Invalid index type "tuple[str, Optional[int], tuple[Any, ...], str]" for "dict[tuple[str, Optional[int]], tuple[RepoView, str]]"; expected type "tuple[str, Optional[int]]" [index] -scripts/profile_sync.py:0: error: Invalid index type "tuple[str, str, Optional[int], tuple[str, ...], Union[RepoView, Any, None], str]" for "dict[tuple[str, str, Optional[int]], Optional[list[str]]]"; expected type "tuple[str, str, Optional[int]]" [index] -scripts/profile_sync.py:0: error: Invalid index type "tuple[str, str, Optional[int], tuple[str, ...], Union[RepoView, Any, None], str]" for "dict[tuple[str, str, Optional[int]], Optional[list[str]]]"; expected type "tuple[str, str, Optional[int]]" [index] -scripts/profile_sync.py:0: error: Item "None" of "Optional[Match[str]]" has no attribute "start" [union-attr] -scripts/profile_sync.py:0: error: Item "None" of "Optional[VersionReport]" has no attribute "declared" [union-attr] -scripts/profile_sync.py:0: error: Item "None" of "Optional[VersionReport]" has no attribute "latest_release" [union-attr] -scripts/profile_sync.py:0: error: Item "None" of "Optional[dict[Any, Any]]" has no attribute "get" [union-attr] -scripts/profile_sync.py:0: error: Item "None" of "Optional[dict[Any, Any]]" has no attribute "get" [union-attr] -scripts/profile_sync.py:0: error: Item "None" of "Optional[str]" has no attribute "startswith" [union-attr] -scripts/profile_sync.py:0: error: List item 0 has incompatible type "Optional[int]"; expected "int" [list-item] +scripts/profile_sync.py:0: error: Invalid index type "int | None" for "list[str]"; expected type "SupportsIndex" [index] +scripts/profile_sync.py:0: error: Invalid index type "tuple[str, int | None, tuple[Any, ...], str]" for "dict[tuple[str, int | None], tuple[RepoView, str]]"; expected type "tuple[str, int | None]" [index] +scripts/profile_sync.py:0: error: Invalid index type "tuple[str, int | None, tuple[Any, ...], str]" for "dict[tuple[str, int | None], tuple[RepoView, str]]"; expected type "tuple[str, int | None]" [index] +scripts/profile_sync.py:0: error: Invalid index type "tuple[str, str, int | None, tuple[str, ...], RepoView | Any | None, str]" for "dict[tuple[str, str, int | None], list[str] | None]"; expected type "tuple[str, str, int | None]" [index] +scripts/profile_sync.py:0: error: Invalid index type "tuple[str, str, int | None, tuple[str, ...], RepoView | Any | None, str]" for "dict[tuple[str, str, int | None], list[str] | None]"; expected type "tuple[str, str, int | None]" [index] +scripts/profile_sync.py:0: error: Item "None" of "Match[str] | None" has no attribute "start" [union-attr] +scripts/profile_sync.py:0: error: Item "None" of "VersionReport | None" has no attribute "declared" [union-attr] +scripts/profile_sync.py:0: error: Item "None" of "VersionReport | None" has no attribute "latest_release" [union-attr] +scripts/profile_sync.py:0: error: Item "None" of "dict[Any, Any] | None" has no attribute "get" [union-attr] +scripts/profile_sync.py:0: error: Item "None" of "dict[Any, Any] | None" has no attribute "get" [union-attr] +scripts/profile_sync.py:0: error: Item "None" of "str | None" has no attribute "startswith" [union-attr] +scripts/profile_sync.py:0: error: List item 0 has incompatible type "int | None"; expected "int" [list-item] scripts/profile_sync.py:0: error: Unsupported operand types for + ("None" and "int") [operator] scripts/profile_sync.py:0: error: Unsupported target for indexed assignment ("object") [index] -scripts/profile_sync.py:0: error: Value of type "Optional[tuple[int, int]]" is not indexable [index] scripts/profile_sync.py:0: error: Value of type "object" is not indexable [index] scripts/profile_sync.py:0: error: Value of type "object" is not indexable [index] +scripts/profile_sync.py:0: error: Value of type "tuple[int, int] | None" is not indexable [index] scripts/provenance_report.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "set[Any]") [assignment] scripts/provenance_report.py:0: error: List comprehension has incompatible type List[tuple[str, str, Any]]; expected List[tuple[str, str]] [misc] -scripts/refresh_data_dirs.py:0: error: Item "None" of "Optional[IO[bytes]]" has no attribute "__enter__" [union-attr] -scripts/refresh_data_dirs.py:0: error: Item "None" of "Optional[IO[bytes]]" has no attribute "__exit__" [union-attr] -scripts/refresh_stale.py:0: error: Argument "area" to "Job" has incompatible type "Optional[Any]"; expected "str" [arg-type] -scripts/refresh_stale.py:0: error: Argument 1 to "_command_for" has incompatible type "Optional[Any]"; expected "str" [arg-type] -scripts/refresh_stale.py:0: error: Argument 1 to "add" of "set" has incompatible type "tuple[Optional[Any], str]"; expected "tuple[str, str]" [arg-type] -scripts/region.py:0: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "Optional[int]" [type-var] -scripts/region_check.py:0: error: Dict entry 0 has incompatible type "str": "dict[str, Optional[Path]]"; expected "str": "dict[str, Path]" [dict-item] -scripts/region_check.py:0: error: Dict entry 1 has incompatible type "str": "dict[str, Optional[Path]]"; expected "str": "dict[str, Path]" [dict-item] -scripts/region_check.py:0: error: Dict entry 2 has incompatible type "str": "dict[str, Optional[Path]]"; expected "str": "dict[str, Path]" [dict-item] +scripts/refresh_data_dirs.py:0: error: Item "None" of "IO[bytes] | None" has no attribute "__enter__" [union-attr] +scripts/refresh_data_dirs.py:0: error: Item "None" of "IO[bytes] | None" has no attribute "__exit__" [union-attr] +scripts/refresh_stale.py:0: error: Argument "area" to "Job" has incompatible type "Any | None"; expected "str" [arg-type] +scripts/refresh_stale.py:0: error: Argument 1 to "_command_for" has incompatible type "Any | None"; expected "str" [arg-type] +scripts/refresh_stale.py:0: error: Argument 1 to "add" of "set" has incompatible type "tuple[Any | None, str]"; expected "tuple[str, str]" [arg-type] +scripts/region.py:0: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "int | None" [type-var] +scripts/region_check.py:0: error: Dict entry 0 has incompatible type "str": "dict[str, Path | None]"; expected "str": "dict[str, Path]" [dict-item] +scripts/region_check.py:0: error: Dict entry 1 has incompatible type "str": "dict[str, Path | None]"; expected "str": "dict[str, Path]" [dict-item] +scripts/region_check.py:0: error: Dict entry 2 has incompatible type "str": "dict[str, Path | None]"; expected "str": "dict[str, Path]" [dict-item] scripts/safeparse.py:0: error: Invalid base class "base" [misc] scripts/safeparse.py:0: error: Variable "base" is not valid as a type [valid-type] scripts/scraper/_hash_merge.py:0: error: Unsupported operand types for + ("None" and "int") [operator] @@ -535,7 +533,7 @@ scripts/scraper/arcade_parent_importer.py:0: error: Dict entry 2 has incompatibl scripts/scraper/arcade_parent_importer.py:0: error: Dict entry 2 has incompatible type "str": "dict[str, str]"; expected "str": "str" [dict-item] scripts/scraper/arcade_parent_importer.py:0: error: Dict entry 2 has incompatible type "str": "dict[str, str]"; expected "str": "str" [dict-item] scripts/scraper/arcade_parent_importer.py:0: error: Incompatible return value type (got "IO[bytes]", expected "BufferedIOBase") [return-value] -scripts/scraper/arcade_parent_importer.py:0: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] +scripts/scraper/arcade_parent_importer.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] scripts/scraper/arcade_parent_importer.py:0: error: List comprehension has incompatible type List[Callable[[], BufferedIOBase]]; expected List[Callable[[Any], Any]] [misc] scripts/scraper/base_scraper.py:0: error: "object" has no attribute "read" [attr-defined] scripts/scraper/batocera_launchers.py:0: error: "expr" has no attribute "left" [attr-defined] @@ -545,51 +543,51 @@ scripts/scraper/batocera_launchers.py:0: error: "expr" has no attribute "value" scripts/scraper/batocera_launchers.py:0: error: "stmt" has no attribute "body" [attr-defined] scripts/scraper/batocera_launchers.py:0: error: "stmt" has no attribute "body" [attr-defined] scripts/scraper/batocera_launchers.py:0: error: "stmt" has no attribute "value" [attr-defined] -scripts/scraper/batocera_launchers.py:0: error: Argument "depends_on_option" to "Launcher" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "Optional[str]" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument "names" to "Launcher" has incompatible type "list[Union[str, bytes, int, float, complex, ellipsis, None]]"; expected "list[str]" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument "passes_to" to "Launcher" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "Optional[str]" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "str" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[Union[str, bytes, int, float, complex, ellipsis, None]]"; expected "Iterable[str]" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument 1 to "ref" of "Source" has incompatible type "list[Union[tuple[int, Optional[int]], tuple[int, int]]]"; expected "list[tuple[int, int]]" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument 1 to has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "str" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument 2 to "_string_lists" has incompatible type "Optional[expr]"; expected "AST" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument 2 to "_string_lists" has incompatible type "Optional[expr]"; expected "AST" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument 3 to "_mentions" has incompatible type "set[Optional[str]]"; expected "set[str]" [arg-type] -scripts/scraper/batocera_launchers.py:0: error: Argument 3 to "_raise_message" has incompatible type "Optional[str]"; expected "str" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument "depends_on_option" to "Launcher" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str | None" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument "names" to "Launcher" has incompatible type "list[str | bytes | int | float | complex | EllipsisType | None]"; expected "list[str]" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument "passes_to" to "Launcher" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str | None" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[str | bytes | int | float | complex | EllipsisType | None]"; expected "Iterable[str]" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument 1 to "ref" of "Source" has incompatible type "list[tuple[int, int | None] | tuple[int, int]]"; expected "list[tuple[int, int]]" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument 1 to has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument 2 to "_string_lists" has incompatible type "expr | None"; expected "AST" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument 2 to "_string_lists" has incompatible type "expr | None"; expected "AST" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument 3 to "_mentions" has incompatible type "set[str | None]"; expected "set[str]" [arg-type] +scripts/scraper/batocera_launchers.py:0: error: Argument 3 to "_raise_message" has incompatible type "str | None"; expected "str" [arg-type] scripts/scraper/batocera_launchers.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] scripts/scraper/batocera_launchers.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] scripts/scraper/batocera_launchers.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] scripts/scraper/batocera_launchers.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] scripts/scraper/batocera_launchers.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] -scripts/scraper/batocera_launchers.py:0: error: Incompatible return value type (got "tuple[Union[str, bytes, int, float, complex, ellipsis, None], Union[str, bytes, int, float, complex, ellipsis, None]]", expected "Optional[tuple[str, Any]]") [return-value] -scripts/scraper/batocera_launchers.py:0: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] -scripts/scraper/batocera_launchers.py:0: error: Item "None" of "Optional[expr]" has no attribute "lineno" [union-attr] -scripts/scraper/batocera_launchers.py:0: error: List comprehension has incompatible type List[Optional[str]]; expected List[str] [misc] -scripts/scraper/batocera_launchers.py:0: error: List comprehension has incompatible type List[tuple[int, Optional[int]]]; expected List[tuple[int, int]] [misc] -scripts/scraper/batocera_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/batocera_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/batocera_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/batocera_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/batocera_launchers.py:0: error: List item 1 has incompatible type "tuple[Union[int, Any], Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/batocera_launchers.py:0: error: List item 1 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] +scripts/scraper/batocera_launchers.py:0: error: Incompatible return value type (got "tuple[str | bytes | int | float | complex | EllipsisType | None, str | bytes | int | float | complex | EllipsisType | None]", expected "tuple[str, Any] | None") [return-value] +scripts/scraper/batocera_launchers.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +scripts/scraper/batocera_launchers.py:0: error: Item "None" of "expr | None" has no attribute "lineno" [union-attr] +scripts/scraper/batocera_launchers.py:0: error: List comprehension has incompatible type List[str | None]; expected List[str] [misc] +scripts/scraper/batocera_launchers.py:0: error: List comprehension has incompatible type List[tuple[int, int | None]]; expected List[tuple[int, int]] [misc] +scripts/scraper/batocera_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/batocera_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/batocera_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/batocera_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/batocera_launchers.py:0: error: List item 1 has incompatible type "tuple[int | Any, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/batocera_launchers.py:0: error: List item 1 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] scripts/scraper/batocera_launchers.py:0: error: Need type annotation for "launchers" (hint: "launchers: list[] = ...") [var-annotated] -scripts/scraper/batocera_launchers.py:0: error: Unsupported left operand type for + ("ellipsis") [operator] +scripts/scraper/batocera_launchers.py:0: error: Unsupported left operand type for + ("EllipsisType") [operator] scripts/scraper/batocera_launchers.py:0: error: Unsupported operand types for + ("bytes" and "str") [operator] scripts/scraper/batocera_launchers.py:0: error: Unsupported operand types for + ("complex" and "str") [operator] scripts/scraper/batocera_launchers.py:0: error: Unsupported operand types for + ("float" and "str") [operator] scripts/scraper/batocera_launchers.py:0: error: Unsupported operand types for + ("int" and "str") [operator] -scripts/scraper/batocera_launchers.py:0: error: Unsupported operand types for in ("Union[str, bytes, int, float, complex, ellipsis]" and "str") [operator] +scripts/scraper/batocera_launchers.py:0: error: Unsupported operand types for in ("str | bytes | int | float | complex | EllipsisType" and "str") [operator] scripts/scraper/bizhawk_scraper.py:0: error: Name "BaseScraper" already defined (possibly by an import) [no-redef] scripts/scraper/bizhawk_scraper.py:0: error: Name "BiosRequirement" already defined (possibly by an import) [no-redef] scripts/scraper/bizhawk_scraper.py:0: error: Name "fetch_github_latest_version" already defined (possibly by an import) [no-redef] scripts/scraper/bizhawk_scraper.py:0: error: Name "requirement_entry" already defined (possibly by an import) [no-redef] scripts/scraper/bizhawk_scraper.py:0: error: Name "scraper_cli" already defined (possibly by an import) [no-redef] -scripts/scraper/configgen_launchers.py:0: error: Incompatible return value type (got "AST", expected "Union[Assign, AnnAssign]") [return-value] +scripts/scraper/configgen_launchers.py:0: error: Incompatible return value type (got "AST", expected "Assign | AnnAssign") [return-value] scripts/scraper/coreinfo_scraper.py:0: error: Name "BaseScraper" already defined (possibly by an import) [no-redef] scripts/scraper/coreinfo_scraper.py:0: error: Name "BiosRequirement" already defined (possibly by an import) [no-redef] scripts/scraper/coreinfo_scraper.py:0: error: Name "fetch_github_latest_version" already defined (possibly by an import) [no-redef] scripts/scraper/coreinfo_scraper.py:0: error: Name "github_headers" already defined (possibly by an import) [no-redef] -scripts/scraper/emudeck_launchers.py:0: error: Item "None" of "Optional[str]" has no attribute "split" [union-attr] +scripts/scraper/emudeck_launchers.py:0: error: Item "None" of "str | None" has no attribute "split" [union-attr] scripts/scraper/emudeck_launchers.py:0: error: Name "Launcher" already defined (possibly by an import) [no-redef] scripts/scraper/emudeck_launchers.py:0: error: Name "LauncherPatternMissing" already defined (possibly by an import) [no-redef] scripts/scraper/emudeck_launchers.py:0: error: Name "RepoTree" already defined (possibly by an import) [no-redef] @@ -611,7 +609,7 @@ scripts/scraper/emudeck_scraper.py:0: error: Name "requirement_entry" already de scripts/scraper/emudeck_scraper.py:0: error: Need type annotation for "entries" (hint: "entries: list[] = ...") [var-annotated] scripts/scraper/libretro_scraper.py:0: error: Unpacked dict entry 0 has incompatible type "Collection[str]"; expected "SupportsKeysAndGetItem[Any, Any]" [dict-item] scripts/scraper/mame_devices.py:0: error: Incompatible types in "yield" (actual type "IO[bytes]", expected type "BufferedIOBase") [misc] -scripts/scraper/mame_hash_scraper.py:0: error: Item "None" of "Optional[dict[str, Any]]" has no attribute "get" [union-attr] +scripts/scraper/mame_hash_scraper.py:0: error: Item "None" of "dict[str, Any] | None" has no attribute "get" [union-attr] scripts/scraper/minui_scraper.py:0: error: Cannot infer type of lambda [misc] scripts/scraper/minui_scraper.py:0: error: Name "BaseScraper" already defined (possibly by an import) [no-redef] scripts/scraper/minui_scraper.py:0: error: Name "BiosRequirement" already defined (possibly by an import) [no-redef] @@ -665,73 +663,68 @@ scripts/scraper/recalbox_launchers.py:0: error: "stmt" has no attribute "value" scripts/scraper/recalbox_launchers.py:0: error: "stmt" has no attribute "value" [attr-defined] scripts/scraper/recalbox_launchers.py:0: error: "stmt" has no attribute "value" [attr-defined] scripts/scraper/recalbox_launchers.py:0: error: "stmt" has no attribute "value" [attr-defined] -scripts/scraper/recalbox_launchers.py:0: error: Argument "emulator" to "Launcher" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "str" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument "emulator" to "Launcher" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "str" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument "fails_when_missing" to "Launcher" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "Union[bool, str]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument "names" to "Launcher" has incompatible type "list[Optional[str]]"; expected "list[str]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument "names" to "Launcher" has incompatible type "list[Union[str, bytes, int, float, complex, ellipsis, None]]"; expected "list[str]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument "passes_to" to "Launcher" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "Optional[str]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument "slot" to "Launcher" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "Optional[str]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "Optional[str]"; expected "str" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "Optional[str]"; expected "str" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "str" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "str" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "index" of "list" has incompatible type "Optional[stmt]"; expected "stmt" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "join" has incompatible type "*list[Optional[str]]"; expected "str" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[Union[str, bytes, int, float, complex, ellipsis, None]]"; expected "Iterable[str]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[Union[str, bytes, int, float, complex, ellipsis, None]]"; expected "Iterable[str]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[Union[str, bytes, int, float, complex, ellipsis, None]]"; expected "Iterable[str]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "ref" of "Source" has incompatible type "list[tuple[int, Optional[int]]]"; expected "list[tuple[int, int]]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "ref" of "Source" has incompatible type "list[tuple[int, Optional[int]]]"; expected "list[tuple[int, int]]" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "str" [arg-type] -scripts/scraper/recalbox_launchers.py:0: error: Argument 4 to "record" has incompatible type "list[tuple[int, Optional[int]]]"; expected "list[tuple[int, int]]" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument "emulator" to "Launcher" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument "emulator" to "Launcher" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument "fails_when_missing" to "Launcher" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "bool | str" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument "names" to "Launcher" has incompatible type "list[str | None]"; expected "list[str]" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument "names" to "Launcher" has incompatible type "list[str | bytes | int | float | complex | EllipsisType | None]"; expected "list[str]" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument "passes_to" to "Launcher" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str | None" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument "slot" to "Launcher" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str | None" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | None"; expected "str" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | None"; expected "str" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "append" of "list" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "index" of "list" has incompatible type "stmt | None"; expected "stmt" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "join" has incompatible type "*list[str | None]"; expected "str" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[str | bytes | int | float | complex | EllipsisType | None]"; expected "Iterable[str]" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[str | bytes | int | float | complex | EllipsisType | None]"; expected "Iterable[str]" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "join" of "str" has incompatible type "list[str | bytes | int | float | complex | EllipsisType | None]"; expected "Iterable[str]" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "ref" of "Source" has incompatible type "list[tuple[int, int | None]]"; expected "list[tuple[int, int]]" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "ref" of "Source" has incompatible type "list[tuple[int, int | None]]"; expected "list[tuple[int, int]]" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Argument 4 to "record" has incompatible type "list[tuple[int, int | None]]"; expected "list[tuple[int, int]]" [arg-type] scripts/scraper/recalbox_launchers.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] scripts/scraper/recalbox_launchers.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] scripts/scraper/recalbox_launchers.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] scripts/scraper/recalbox_launchers.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] -scripts/scraper/recalbox_launchers.py:0: error: Incompatible return value type (got "Union[str, bytes, int, float, complex, ellipsis, None]", expected "Optional[str]") [return-value] -scripts/scraper/recalbox_launchers.py:0: error: Incompatible return value type (got "dict[str, tuple[list[Union[str, bytes, int, float, complex, ellipsis, None]], AST]]", expected "dict[str, tuple[list[str], stmt]]") [return-value] -scripts/scraper/recalbox_launchers.py:0: error: Incompatible return value type (got "tuple[list[Optional[str]], If]", expected "tuple[list[str], If]") [return-value] -scripts/scraper/recalbox_launchers.py:0: error: Incompatible types in assignment (expression has type "Optional[stmt]", variable has type "stmt") [assignment] -scripts/scraper/recalbox_launchers.py:0: error: Incompatible types in assignment (expression has type "Optional[str]", target has type "str") [assignment] -scripts/scraper/recalbox_launchers.py:0: error: Incompatible types in assignment (expression has type "tuple[Union[str, bytes, int, float, complex, ellipsis, None], Optional[str]]", variable has type "Optional[tuple[str, str]]") [assignment] -scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "Optional[FunctionDef]" has no attribute "args" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "Optional[FunctionDef]" has no attribute "name" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "Optional[expr]" has no attribute "keys" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "Optional[expr]" has no attribute "values" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "Optional[list[str]]" has no attribute "__iter__" (not iterable) [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "Optional[stmt]" has no attribute "body" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "Optional[stmt]" has no attribute "lineno" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "Optional[stmt]" has no attribute "lineno" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "Optional[stmt]" has no attribute "orelse" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "expr" of "Optional[expr]" has no attribute "keys" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "expr" of "Optional[expr]" has no attribute "values" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "stmt" of "Optional[stmt]" has no attribute "body" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: Item "stmt" of "Optional[stmt]" has no attribute "orelse" [union-attr] -scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "Union[str, bytes, int, float, complex, ellipsis, None]"; expected "str" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[Any, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 1 has incompatible type "list[Optional[str]]"; expected "str" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 1 has incompatible type "list[tuple[int, Optional[int]]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 1 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 1 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 2 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 2 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: List item 3 has incompatible type "tuple[int, Optional[int]]"; expected "tuple[int, int]" [list-item] -scripts/scraper/recalbox_launchers.py:0: error: Module has no attribute "Match" [attr-defined] -scripts/scraper/recalbox_launchers.py:0: error: Module has no attribute "MatchAs" [attr-defined] -scripts/scraper/recalbox_launchers.py:0: error: Module has no attribute "MatchOr" [attr-defined] -scripts/scraper/recalbox_launchers.py:0: error: Module has no attribute "MatchValue" [attr-defined] -scripts/scraper/recalbox_launchers.py:0: error: Value of type variable "SupportsRichComparisonT" of "max" cannot be "Optional[int]" [type-var] -scripts/scraper/retrobat_launchers.py:0: error: Incompatible types in assignment (expression has type "Optional[tuple[str, list[tuple[int, int]]]]", variable has type "str") [assignment] -scripts/scraper/retrobat_launchers.py:0: error: Item "None" of "Optional[Match[str]]" has no attribute "group" [union-attr] -scripts/scraper/retrobat_scraper.py:0: error: Argument 1 to "urlopen" has incompatible type "BiosRequirement"; expected "Union[str, Request]" [arg-type] +scripts/scraper/recalbox_launchers.py:0: error: Incompatible return value type (got "dict[str, tuple[list[str | bytes | int | float | complex | EllipsisType | None], AST]]", expected "dict[str, tuple[list[str], stmt]]") [return-value] +scripts/scraper/recalbox_launchers.py:0: error: Incompatible return value type (got "str | bytes | int | float | complex | EllipsisType | None", expected "str | None") [return-value] +scripts/scraper/recalbox_launchers.py:0: error: Incompatible return value type (got "tuple[list[str | None], If]", expected "tuple[list[str], If]") [return-value] +scripts/scraper/recalbox_launchers.py:0: error: Incompatible types in assignment (expression has type "stmt | None", variable has type "stmt") [assignment] +scripts/scraper/recalbox_launchers.py:0: error: Incompatible types in assignment (expression has type "str | None", target has type "str") [assignment] +scripts/scraper/recalbox_launchers.py:0: error: Incompatible types in assignment (expression has type "tuple[str | bytes | int | float | complex | EllipsisType | None, str | None]", variable has type "tuple[str, str] | None") [assignment] +scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "FunctionDef | None" has no attribute "args" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "FunctionDef | None" has no attribute "name" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "expr | None" has no attribute "keys" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "expr | None" has no attribute "values" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "list[str] | None" has no attribute "__iter__" (not iterable) [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "stmt | None" has no attribute "body" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "stmt | None" has no attribute "lineno" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "stmt | None" has no attribute "lineno" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "None" of "stmt | None" has no attribute "orelse" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "expr" of "expr | None" has no attribute "keys" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "expr" of "expr | None" has no attribute "values" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "stmt" of "stmt | None" has no attribute "body" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: Item "stmt" of "stmt | None" has no attribute "orelse" [union-attr] +scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "str | bytes | int | float | complex | EllipsisType | None"; expected "str" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[Any, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 0 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 1 has incompatible type "list[str | None]"; expected "str" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 1 has incompatible type "list[tuple[int, int | None]]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 1 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 1 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 2 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 2 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: List item 3 has incompatible type "tuple[int, int | None]"; expected "tuple[int, int]" [list-item] +scripts/scraper/recalbox_launchers.py:0: error: Value of type variable "SupportsRichComparisonT" of "max" cannot be "int | None" [type-var] +scripts/scraper/retrobat_launchers.py:0: error: Incompatible types in assignment (expression has type "tuple[str, list[tuple[int, int]]] | None", variable has type "str") [assignment] +scripts/scraper/retrobat_launchers.py:0: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr] scripts/scraper/retrobat_scraper.py:0: error: Incompatible types in assignment (expression has type "Request", variable has type "BiosRequirement") [assignment] scripts/scraper/retrobat_scraper.py:0: error: Name "BATOCERA_SLUGS" already defined (possibly by an import) [no-redef] scripts/scraper/retrobat_scraper.py:0: error: Name "BaseScraper" already defined (possibly by an import) [no-redef] @@ -742,6 +735,7 @@ scripts/scraper/retrobat_scraper.py:0: error: Name "fetch_branch_head" already d scripts/scraper/retrobat_scraper.py:0: error: Name "fetch_bytes" already defined (possibly by an import) [no-redef] scripts/scraper/retrobat_scraper.py:0: error: Name "fetch_github_latest_version" already defined (possibly by an import) [no-redef] scripts/scraper/retrobat_scraper.py:0: error: Name "requirement_entry" already defined (possibly by an import) [no-redef] +scripts/scraper/retrobat_scraper.py:0: error: No overload variant of "urlopen" matches argument types "BiosRequirement", "int" [call-overload] scripts/scraper/retrodeck_launchers.py:0: error: Incompatible types in assignment (expression has type "tuple[str, ...]", variable has type "tuple[str, str, str, str]") [assignment] scripts/scraper/retrodeck_launchers.py:0: error: Name "Launcher" already defined (possibly by an import) [no-redef] scripts/scraper/retrodeck_launchers.py:0: error: Name "LauncherPatternMissing" already defined (possibly by an import) [no-redef] @@ -774,9 +768,9 @@ scripts/scraper/retropie_scraper.py:0: error: Name "_SCRIPT_SECTIONS" already de scripts/scraper/retropie_scraper.py:0: error: Name "extract_launchers" already defined (possibly by an import) [no-redef] scripts/scraper/retropie_scraper.py:0: error: Name "fetch_branch_head" already defined (possibly by an import) [no-redef] scripts/scraper/retropie_scraper.py:0: error: Name "scraper_cli" already defined (possibly by an import) [no-redef] -scripts/scraper/rocknix_launchers.py:0: error: Argument "search_dir" to "Launcher" has incompatible type "object"; expected "Optional[str]" [arg-type] -scripts/scraper/rocknix_launchers.py:0: error: Argument 1 to "get" of "dict" has incompatible type "Union[str, Match[str]]"; expected "str" [arg-type] -scripts/scraper/rocknix_launchers.py:0: error: Argument 1 to has incompatible type "Optional[int]"; expected "int" [arg-type] +scripts/scraper/rocknix_launchers.py:0: error: Argument "search_dir" to "Launcher" has incompatible type "object"; expected "str | None" [arg-type] +scripts/scraper/rocknix_launchers.py:0: error: Argument 1 to "get" of "dict" has incompatible type "str | Match[str]"; expected "str" [arg-type] +scripts/scraper/rocknix_launchers.py:0: error: Argument 1 to has incompatible type "int | None"; expected "int" [arg-type] scripts/scraper/rocknix_launchers.py:0: error: Argument 2 to "next" has incompatible type "None"; expected "Match[str]" [arg-type] scripts/scraper/rocknix_launchers.py:0: error: Generator has incompatible item type "str"; expected "Match[str]" [misc] scripts/scraper/rocknix_launchers.py:0: error: Name "Launcher" already defined (possibly by an import) [no-redef] @@ -788,7 +782,7 @@ scripts/scraper/rocknix_launchers.py:0: error: Name "Setting" already defined (p scripts/scraper/rocknix_launchers.py:0: error: Name "describe_keys" already defined (possibly by an import) [no-redef] scripts/scraper/rocknix_launchers.py:0: error: Name "settings" already defined (possibly by an import) [no-redef] scripts/scraper/rocknix_launchers.py:0: error: Name "source_ref" already defined (possibly by an import) [no-redef] -scripts/scraper/rocknix_scraper.py:0: error: Argument 1 to "get" of "dict" has incompatible type "Optional[str]"; expected "str" [arg-type] +scripts/scraper/rocknix_scraper.py:0: error: Argument 1 to "get" of "dict" has incompatible type "str | None"; expected "str" [arg-type] scripts/scraper/rocknix_scraper.py:0: error: Name "BaseScraper" already defined (possibly by an import) [no-redef] scripts/scraper/rocknix_scraper.py:0: error: Name "BiosRequirement" already defined (possibly by an import) [no-redef] scripts/scraper/rocknix_scraper.py:0: error: Name "RepoTree" already defined (possibly by an import) [no-redef] @@ -798,14 +792,14 @@ scripts/scraper/rocknix_scraper.py:0: error: Name "md5_field" already defined (p scripts/scraper/rocknix_scraper.py:0: error: Name "requirement_entry" already defined (possibly by an import) [no-redef] scripts/scraper/rocknix_scraper.py:0: error: Name "scraper_cli" already defined (possibly by an import) [no-redef] scripts/scraper/romfolders/card.py:0: error: Incompatible types in assignment (expression has type "list[str]", variable has type "str") [assignment] -scripts/scraper/romfolders/card.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "Optional[Match[str]]") [assignment] -scripts/scraper/romfolders/card.py:0: error: No overload variant of "get" of "dict" matches argument types "Optional[Match[str]]", "Optional[Match[str]]" [call-overload] +scripts/scraper/romfolders/card.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "Match[str] | None") [assignment] +scripts/scraper/romfolders/card.py:0: error: No overload variant of "get" of "dict" matches argument types "Match[str] | None", "Match[str] | None" [call-overload] scripts/scraper/romfolders/es.py:0: error: Argument 2 to "setdefault" of "MutableMapping" has incompatible type "tuple[str, Any, str]"; expected "tuple[str, str, int]" [arg-type] -scripts/scraper/romfolders/es.py:0: error: Incompatible types in assignment (expression has type "Optional[Any]", variable has type "str") [assignment] +scripts/scraper/romfolders/es.py:0: error: Incompatible types in assignment (expression has type "Any | None", variable has type "str") [assignment] scripts/scraper/romfolders/es.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment] scripts/scraper/romfolders/es.py:0: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment] scripts/scraper/romfolders/es.py:0: error: List item 0 has incompatible type "None"; expected "dict[Any, Any]" [list-item] -scripts/scraper/romfolders/es.py:0: error: Value of type "Optional[str]" is not indexable [index] +scripts/scraper/romfolders/es.py:0: error: Value of type "str | None" is not indexable [index] scripts/scraper/romm_scraper.py:0: error: Name "BaseScraper" already defined (possibly by an import) [no-redef] scripts/scraper/romm_scraper.py:0: error: Name "BiosRequirement" already defined (possibly by an import) [no-redef] scripts/scraper/romm_scraper.py:0: error: Name "fetch_bytes" already defined (possibly by an import) [no-redef] @@ -845,34 +839,34 @@ scripts/scraper/targets/recalbox_targets_scraper.py:0: error: Name "fetch_bytes" scripts/scraper/targets/rocknix_targets_scraper.py:0: error: Name "fetch_bytes" already defined (possibly by an import) [no-redef] scripts/scraper/targets/rocknix_targets_scraper.py:0: error: Name "github_headers" already defined (possibly by an import) [no-redef] scripts/scraper/targets/rocknix_targets_scraper.py:0: error: Name "standalone_emulators" already defined (possibly by an import) [no-redef] -scripts/sect233r1.py:0: error: Incompatible types in assignment (expression has type "Optional[tuple[int, int]]", variable has type "tuple[int, int]") [assignment] -scripts/site_insights.py:0: error: Item "list[Any]" of "Union[dict[Any, Any], list[Any]]" has no attribute "get" [union-attr] -scripts/site_insights.py:0: error: Item "list[Any]" of "Union[dict[Any, Any], list[Any]]" has no attribute "get" [union-attr] -scripts/site_insights.py:0: error: Item "list[Any]" of "Union[dict[Any, Any], list[Any]]" has no attribute "get" [union-attr] +scripts/sect233r1.py:0: error: Incompatible types in assignment (expression has type "tuple[int, int] | None", variable has type "tuple[int, int]") [assignment] +scripts/site_insights.py:0: error: Item "list[Any]" of "dict[Any, Any] | list[Any]" has no attribute "get" [union-attr] +scripts/site_insights.py:0: error: Item "list[Any]" of "dict[Any, Any] | list[Any]" has no attribute "get" [union-attr] +scripts/site_insights.py:0: error: Item "list[Any]" of "dict[Any, Any] | list[Any]" has no attribute "get" [union-attr] scripts/sitediagrams.py:0: error: "AST" has no attribute "value" [attr-defined] -scripts/sitediagrams.py:0: error: Argument 1 to "lstrip" of "bytes" has incompatible type "str"; expected "Optional[Buffer]" [arg-type] +scripts/sitediagrams.py:0: error: Argument 1 to "lstrip" of "bytes" has incompatible type "str"; expected "Buffer | None" [arg-type] scripts/sitediagrams.py:0: error: If x = b'abc' then f"{x}" or "{}".format(x) produces "b'abc'", not "abc". If this is desired behavior, use f"{x!r}" or "{!r}".format(x). Otherwise, decode the bytes [str-bytes-safe] -scripts/sitediagrams.py:0: error: Incompatible types in assignment (expression has type "Union[str, bytes, int, float, complex, ellipsis, Any, None]", variable has type "str") [assignment] -scripts/sitediagrams.py:0: error: Item "None" of "Union[str, bytes, int, float, complex, ellipsis, None]" has no attribute "lstrip" [union-attr] -scripts/sitediagrams.py:0: error: Item "complex" of "Union[str, bytes, int, float, complex, ellipsis, None]" has no attribute "lstrip" [union-attr] -scripts/sitediagrams.py:0: error: Item "ellipsis" of "Union[str, bytes, int, float, complex, ellipsis, None]" has no attribute "lstrip" [union-attr] -scripts/sitediagrams.py:0: error: Item "float" of "Union[str, bytes, int, float, complex, ellipsis, None]" has no attribute "lstrip" [union-attr] -scripts/sitediagrams.py:0: error: Item "int" of "Union[str, bytes, int, float, complex, ellipsis, None]" has no attribute "lstrip" [union-attr] +scripts/sitediagrams.py:0: error: Incompatible types in assignment (expression has type "str | bytes | int | float | complex | EllipsisType | Any | None", variable has type "str") [assignment] +scripts/sitediagrams.py:0: error: Item "EllipsisType" of "str | bytes | int | float | complex | EllipsisType | None" has no attribute "lstrip" [union-attr] +scripts/sitediagrams.py:0: error: Item "None" of "str | bytes | int | float | complex | EllipsisType | None" has no attribute "lstrip" [union-attr] +scripts/sitediagrams.py:0: error: Item "complex" of "str | bytes | int | float | complex | EllipsisType | None" has no attribute "lstrip" [union-attr] +scripts/sitediagrams.py:0: error: Item "float" of "str | bytes | int | float | complex | EllipsisType | None" has no attribute "lstrip" [union-attr] +scripts/sitediagrams.py:0: error: Item "int" of "str | bytes | int | float | complex | EllipsisType | None" has no attribute "lstrip" [union-attr] scripts/siteguides.py:0: error: Argument 1 to "tuple" has incompatible type "list[tuple[str, ...]]"; expected "Iterable[tuple[str, str, str, str, str]]" [arg-type] scripts/siteguides.py:0: error: Incompatible types in assignment (expression has type "tuple[str, ...]", target has type "tuple[str, str, str]") [assignment] -scripts/sitemeasurements.py:0: error: Argument 1 to "permalink" has incompatible type "Optional[Any]"; expected "str" [arg-type] -scripts/sitemeasurements.py:0: error: Argument 2 to "permalink" has incompatible type "Optional[Any]"; expected "str" [arg-type] -scripts/sitemeasurements.py:0: error: Value of type "Optional[Match[str]]" is not indexable [index] +scripts/sitemeasurements.py:0: error: Argument 1 to "permalink" has incompatible type "Any | None"; expected "str" [arg-type] +scripts/sitemeasurements.py:0: error: Argument 2 to "permalink" has incompatible type "Any | None"; expected "str" [arg-type] +scripts/sitemeasurements.py:0: error: Value of type "Match[str] | None" is not indexable [index] scripts/siterender.py:0: error: "None" object is not iterable [misc] -scripts/siterender.py:0: error: Argument 1 to "add" of "set" has incompatible type "Optional[tuple[str, str]]"; expected "tuple[str, str]" [arg-type] +scripts/siterender.py:0: error: Argument 1 to "add" of "set" has incompatible type "tuple[str, str] | None"; expected "tuple[str, str]" [arg-type] scripts/sitestarlight.py:0: error: "object" has no attribute "items" [attr-defined] -scripts/sitestarlight.py:0: error: Argument "key" to "max" has incompatible type overloaded function; expected "Callable[[str], Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]]" [arg-type] -scripts/sitestarlight.py:0: error: Incompatible types in assignment (expression has type "Optional[dict[str, int]]", variable has type "dict[str, int]") [assignment] -scripts/slot.py:0: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "Optional[int]" [type-var] -scripts/sourceref.py:0: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] +scripts/sitestarlight.py:0: error: Argument "key" to "max" has incompatible type overloaded function; expected "Callable[[str], SupportsDunderLT[Any] | SupportsDunderGT[Any]]" [arg-type] +scripts/sitestarlight.py:0: error: Incompatible types in assignment (expression has type "dict[str, int] | None", variable has type "dict[str, int]") [assignment] +scripts/slot.py:0: error: Value of type variable "SupportsRichComparisonT" of "min" cannot be "int | None" [type-var] +scripts/sourceref.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] scripts/upstream.py:0: error: "object" has no attribute "get" [attr-defined] -scripts/upstream.py:0: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] -scripts/upstream.py:0: error: Incompatible types in assignment (expression has type "Optional[str]", variable has type "str") [assignment] +scripts/upstream.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] +scripts/upstream.py:0: error: Incompatible types in assignment (expression has type "str | None", variable has type "str") [assignment] scripts/upstream.py:0: error: Value of type "object" is not indexable [index] scripts/validate_pr.py:0: error: "Collection[Any]" has no attribute "add" [attr-defined] scripts/validate_pr.py:0: error: "Collection[Any]" has no attribute "setdefault" [attr-defined] @@ -886,7 +880,6 @@ scripts/validate_pr.py:0: error: "add" of "set" does not return a value (it only scripts/validate_pr.py:0: error: Argument 1 to "_note_sizes" has incompatible type "Collection[Any]"; expected "dict[str, list[Any]]" [arg-type] scripts/validate_pr.py:0: error: Incompatible types in assignment (expression has type "list[Never]", variable has type "_MutuallyExclusiveGroup") [assignment] scripts/validate_pr.py:0: error: Incompatible types in assignment (expression has type "set[Any]", variable has type "list[Any]") [assignment] -scripts/validate_pr.py:0: error: List item 0 has incompatible type "None"; expected "int" [list-item] scripts/validate_pr.py:0: error: Need type annotation for "checks" (hint: "checks: list[] = ...") [var-annotated] scripts/validate_pr.py:0: error: Need type annotation for "expected" [var-annotated] scripts/validate_pr.py:0: error: Need type annotation for "known" [var-annotated] @@ -901,18 +894,18 @@ scripts/validate_schemas.py:0: error: "object" has no attribute "get" [attr-def scripts/validate_schemas.py:0: error: "object" has no attribute "get" [attr-defined] scripts/validate_schemas.py:0: error: "object" has no attribute "get" [attr-defined] scripts/validate_schemas.py:0: error: Argument 1 to "_semantic_database_checks" has incompatible type "object"; expected "dict[Any, Any]" [arg-type] -scripts/validate_schemas.py:0: error: Argument 3 to "_validate_json_files" has incompatible type "Callable[[Path, dict[Any, Any]], list[str]]"; expected "Optional[Callable[[Path, object], list[str]]]" [arg-type] -scripts/validate_schemas.py:0: error: Argument 3 to "_validate_json_files" has incompatible type "Callable[[Path, dict[Any, Any]], list[str]]"; expected "Optional[Callable[[Path, object], list[str]]]" [arg-type] +scripts/validate_schemas.py:0: error: Argument 3 to "_validate_json_files" has incompatible type "Callable[[Path, dict[Any, Any]], list[str]]"; expected "Callable[[Path, object], list[str]] | None" [arg-type] +scripts/validate_schemas.py:0: error: Argument 3 to "_validate_json_files" has incompatible type "Callable[[Path, dict[Any, Any]], list[str]]"; expected "Callable[[Path, object], list[str]] | None" [arg-type] scripts/validate_schemas.py:0: error: Unpacked dict entry 0 has incompatible type "object"; expected "SupportsKeysAndGetItem[str, str]" [dict-item] -scripts/validation.py:0: error: Argument 1 to "_merged_reason" has incompatible type "list[Optional[str]]"; expected "list[str]" [arg-type] -scripts/validation.py:0: error: Argument 1 to "set" has incompatible type "Union[dict[Any, Any], list[str], Any, None]"; expected "Iterable[Any]" [arg-type] -scripts/validation.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "tuple[Optional[Any], Optional[Any]]"; expected "tuple[str, str]" [arg-type] -scripts/validation.py:0: error: Argument 2 to "frontend_digest_matches" has incompatible type "Optional[str]"; expected "str" [arg-type] +scripts/validation.py:0: error: Argument 1 to "_merged_reason" has incompatible type "list[str | None]"; expected "list[str]" [arg-type] +scripts/validation.py:0: error: Argument 1 to "set" has incompatible type "dict[Any, Any] | list[str] | Any | None"; expected "Iterable[Any]" [arg-type] +scripts/validation.py:0: error: Argument 1 to "setdefault" of "MutableMapping" has incompatible type "tuple[Any | None, Any | None]"; expected "tuple[str, str]" [arg-type] +scripts/validation.py:0: error: Argument 2 to "frontend_digest_matches" has incompatible type "str | None"; expected "str" [arg-type] scripts/validation.py:0: error: Argument 3 to "_entry_rule" has incompatible type "list[str]"; expected "set[str]" [arg-type] scripts/validation.py:0: error: Incompatible types in assignment (expression has type "str", variable has type "dict[str, str]") [assignment] -scripts/validation.py:0: error: Item "None" of "Optional[Match[str]]" has no attribute "group" [union-attr] -scripts/validation.py:0: error: Item "None" of "Optional[Match[str]]" has no attribute "group" [union-attr] -scripts/validation.py:0: error: Item "None" of "Optional[Match[str]]" has no attribute "group" [union-attr] -scripts/validation.py:0: error: Item "None" of "Optional[str]" has no attribute "lower" [union-attr] -scripts/verify.py:0: error: Item "None" of "Optional[dict[Any, Any]]" has no attribute "setdefault" [union-attr] +scripts/validation.py:0: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr] +scripts/validation.py:0: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr] +scripts/validation.py:0: error: Item "None" of "Match[str] | None" has no attribute "group" [union-attr] +scripts/validation.py:0: error: Item "None" of "str | None" has no attribute "lower" [union-attr] +scripts/verify.py:0: error: Item "None" of "dict[Any, Any] | None" has no attribute "setdefault" [union-attr] scripts/version_basis.py:0: error: Too many arguments for "describe_form" [call-arg] diff --git a/pyproject.toml b/pyproject.toml index 5abe84554..0f112b541 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -45,7 +45,7 @@ dev = [ "uv==0.13.4", # The type check CI runs, pinned: another mypy reports other errors # than the ones mypy-baseline.txt holds. - "mypy==1.18.2", + "mypy==2.4.1", "mypy-baseline==0.7.4", ] # The site is built by Astro Starlight from website/package.json and its @@ -63,7 +63,9 @@ Repository = "https://github.com/Abdess/retrobios" # `mypy-baseline sync < out.txt` once the fix is in. [tool.mypy] files = ["install.py", "scripts"] -python_version = "3.9" +# The oldest target mypy 2 checks against. install.py's own floor, 3.8, is +# held by vermin (pr_checks.py, validate.yml). +python_version = "3.10" explicit_package_bases = true ignore_missing_imports = true no_site_packages = true diff --git a/scripts/generate_site.py b/scripts/generate_site.py index 121b0110c..017124bf2 100644 --- a/scripts/generate_site.py +++ b/scripts/generate_site.py @@ -7255,7 +7255,7 @@ def _group_start(group: _StartGroup, first_below: bool) -> list[tuple[str, str]] if same is None: regional[(region,)] = text else: - regional[(*same, region)] = regional.pop(same) + regional[same + (region,)] = regional.pop(same) out = [(", ".join(_region_words(r) for r in regions), regional[regions]) for regions in sorted(regional, key=lambda rs: (order.get(rs[0], len(order)), rs))] @@ -10308,13 +10308,9 @@ def emulator_pages( else: lines.append(f"| Source | {source} |") if isinstance(upstream_raw, dict): - parts = [] - for k, v in upstream_raw.items(): - if isinstance(v, str) and v.startswith("http"): - parts.append(f"[{k}]({v})") - else: - parts.append(f"{k}: {v}") - lines.append(f"| Upstream | {', '.join(parts)} |") + links = [f"[{k}]({v})" if isinstance(v, str) and v.startswith("http") else f"{k}: {v}" + for k, v in upstream_raw.items()] + lines.append(f"| Upstream | {', '.join(links)} |") elif upstream_none: lines.append("| Upstream | none: the source is the project itself |") elif upstream and upstream != source: diff --git a/scripts/torrentzip.py b/scripts/torrentzip.py index c66d1e319..5e2faff66 100644 --- a/scripts/torrentzip.py +++ b/scripts/torrentzip.py @@ -43,7 +43,7 @@ class Source(Protocol): class Sink(Protocol): - def write(self, data: bytes, /) -> int: ... + def write(self, data: bytes | bytearray, /) -> int: ... # TorrentZip constants: 1996-12-24 23:32:00, deflate level 9 _DOS_DATE = ((1996 - 1980) << 9) | (12 << 5) | 24