Summary

Comparing branches/commits:
Old: main (merge base) d063c711
New: 21499/merge a68eb410
Lint Rule Removed Added Changed
Total 57 5 10
invalid-assignment 20 3 5
invalid-return-type 16 0 1
index-out-of-bounds 13 0 0
invalid-argument-type 6 1 2
unsupported-operator 0 0 2
unused-ignore-comment 2 0 0
redundant-cast 0 1 0

anyio (https://github.com/agronholm/anyio)

src/anyio/_core/_sockets.py

[error] invalid-argument-type - :385:56 - Argument to function `setup_raw_socket` is incorrect: Expected `tuple[str, int] | tuple[str, int, int, int]`, found `tuple[str | Unknown, int, @Todo]`

apprise (https://github.com/caronc/apprise)

tests/test_plugin_email.py

[error] invalid-assignment - :634:5 -
Old: Object of type `tuple[@Todo, @Todo]` is not assignable to attribute `EMAIL_TEMPLATES` of type `tuple[tuple[Literal["Google Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Yandex"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Microsoft Hotmail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Microsoft Outlook"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Microsoft Office 365"], Pattern[str], dict[Unknown | str, Unknown | int | str]], tuple[Literal["Yahoo Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Fast Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Fast Mail Extended Addresses"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Zoho Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["SendGrid"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["163.com"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Foxmail.com"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Comcast.net"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Local Mail Server"], Pattern[str], dict[Unknown | str, Unknown | str | None]], tuple[Literal["Custom"], Pattern[str], dict[Unknown | str, Unknown | None]]]`
New: Object of type `tuple[tuple[Literal["Testing Lookup"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Google Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Yandex"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Microsoft Hotmail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Microsoft Outlook"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Microsoft Office 365"], Pattern[str], dict[Unknown | str, Unknown | int | str]], tuple[Literal["Yahoo Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Fast Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Fast Mail Extended Addresses"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Zoho Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["SendGrid"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["163.com"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Foxmail.com"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Comcast.net"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Local Mail Server"], Pattern[str], dict[Unknown | str, Unknown | str | None]], tuple[Literal["Custom"], Pattern[str], dict[Unknown | str, Unknown | None]]]` is not assignable to attribute `EMAIL_TEMPLATES` of type `tuple[tuple[Literal["Google Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Yandex"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Microsoft Hotmail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Microsoft Outlook"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Microsoft Office 365"], Pattern[str], dict[Unknown | str, Unknown | int | str]], tuple[Literal["Yahoo Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Fast Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Fast Mail Extended Addresses"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Zoho Mail"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["SendGrid"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["163.com"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Foxmail.com"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Comcast.net"], Pattern[str], dict[Unknown | str, Unknown | int | str | tuple[Unknown | str]]], tuple[Literal["Local Mail Server"], Pattern[str], dict[Unknown | str, Unknown | str | None]], tuple[Literal["Custom"], Pattern[str], dict[Unknown | str, Unknown | None]]]`

black (https://github.com/psf/black)

src/black/cache.py

[error] invalid-assignment - :144:17 - Object of type `dict[str | Unknown, tuple[@Todo] | Unknown]` is not assignable to `dict[str, tuple[int | float, int, str]]`

bokeh (https://github.com/bokeh/bokeh)

src/bokeh/models/__init__.py

[error] invalid-assignment - :108:1 - Object of type `tuple[Literal["Model"], @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo]` is not assignable to `tuple[@Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo]`

src/bokeh/models/annotations/__init__.py

[error] invalid-assignment - :44:1 - Object of type `tuple[@Todo, @Todo, @Todo, @Todo, @Todo, @Todo, @Todo]` is not assignable to `tuple[@Todo, @Todo, @Todo]`

core (https://github.com/home-assistant/core)

homeassistant/components/esphome/light.py

[error] invalid-return-type - :337:16 - Return type does not match returned value: expected `tuple[int, int, int, int]`, found `tuple[@Todo, Unknown]`
[error] invalid-return-type - :358:20 - Return type does not match returned value: expected `tuple[int, int, int, int, int]`, found `tuple[@Todo, Unknown, Unknown]`
[error] invalid-return-type - :363:16 - Return type does not match returned value: expected `tuple[int, int, int, int, int]`, found `tuple[@Todo, Unknown, Unknown]`

homeassistant/components/flux_led/util.py

[error] invalid-return-type - :98:16 - Return type does not match returned value: expected `tuple[int, int, int, int]`, found `tuple[@Todo, int]`
[error] invalid-return-type - :99:12 - Return type does not match returned value: expected `tuple[int, int, int, int]`, found `tuple[@Todo, int]`
[error] invalid-return-type - :114:16 - Return type does not match returned value: expected `tuple[int, int, int, int, int]`, found `tuple[@Todo, int, int]`
[error] invalid-return-type - :115:12 - Return type does not match returned value: expected `tuple[int, int, int, int, int]`, found `tuple[@Todo, int, int]`

homeassistant/components/knx/light.py

[error] invalid-return-type - :375:24 - Return type does not match returned value: expected `tuple[int, int, int, int] | None`, found `tuple[@Todo, Unknown & ~None]`

homeassistant/components/rfxtrx/__init__.py

[warning] unused-ignore-comment - :212:50 - Unused blanket `type: ignore` directive

homeassistant/components/rfxtrx/entity.py

[warning] unused-ignore-comment - :24:39 - Unused blanket `type: ignore` directive

homeassistant/components/shelly/light.py

[error] invalid-return-type - :226:16 - Return type does not match returned value: expected `tuple[int, int, int, int]`, found `tuple[@Todo, int]`
[error] invalid-return-type - :400:16 - Return type does not match returned value: expected `tuple[int, int, int, int]`, found `tuple[@Todo, Unknown]`

homeassistant/components/zwave_js/discovery.py

[error] invalid-argument-type - :1389:17 - Argument is incorrect: Expected `type[ZWaveBaseEntity]`, found `type`

discord.py (https://github.com/Rapptz/discord.py)

discord/app_commands/transformers.py

[error] invalid-assignment - :584:13 - Not enough values to unpack: Expected 3

discord/ext/commands/converter.py

[error] invalid-assignment - :1241:13 - Not enough values to unpack: Expected 3

egglog-python (https://github.com/egraphs-good/egglog-python)

python/egglog/builtins.py

[error] invalid-argument-type - :1061:31 - `@Todo` is not a valid argument to `Generic`

python/egglog/thunk.py

[error] invalid-argument-type - :36:13 - `@Todo` is not a valid argument to `Generic`
[error] invalid-argument-type - :83:18 - `@Todo` is not a valid argument to `Generic`

freqtrade (https://github.com/freqtrade/freqtrade)

freqtrade/commands/data_commands.py

[error] invalid-assignment - :172:21 - Not enough values to unpack: Expected 6
[error] invalid-assignment - :226:21 - Not enough values to unpack: Expected 4

jax (https://github.com/google/jax)

jax/experimental/slab/slab.py

[error] invalid-assignment - :248:3 - Not enough values to unpack: Expected 3

jax/_src/pallas/fuser/block_spec.py

[error] invalid-return-type - :839:10 -
Old: Return type does not match returned value: expected `Sequence[BlockSpec]`, found `list[Unknown | NoBlockSpec]`
New: Return type does not match returned value: expected `Sequence[BlockSpec]`, found `list[Unknown | NoBlockSpec | BlockSpec]`

jax/_src/pallas/hlo_interpreter.py

[error] invalid-argument-type - :395:33 -
Old: Argument to function `pad` is incorrect: Expected `Sequence[tuple[int, int, int]]`, found `list[tuple[@Todo, int] | Unknown]`
New: Argument to function `pad` is incorrect: Expected `Sequence[tuple[int, int, int]]`, found `list[tuple[*tuple[int | Unknown, ...], int] | Unknown]`

jax/experimental/mosaic/gpu/utils.py

[error] invalid-return-type - :1965:10 - Return type does not match returned value: expected `tuple[Unknown, Unknown, Unknown, Unknown]`, found `tuple[@Todo, Unknown]`

jax/experimental/pallas/ops/gpu/all_gather_mgpu.py

[error] unsupported-operator - :91:6 -
Old: Operator `%` is unsupported between objects of type `@Todo | int` and `int | None`
New: Operator `%` is unsupported between objects of type `int` and `int | None`

jax/experimental/pallas/ops/gpu/reduce_scatter_mgpu.py

[error] unsupported-operator - :106:6 -
Old: Operator `%` is unsupported between objects of type `Unknown | Literal[1]` and `int | None`
New: Operator `%` is unsupported between objects of type `int` and `int | None`

kornia (https://github.com/kornia/kornia)

kornia/utils/draw.py

[error] invalid-assignment - :376:5 - Not enough values to unpack: Expected 5
[error] invalid-assignment - :379:5 - Not enough values to unpack: Expected 5
[error] invalid-assignment - :382:5 - Not enough values to unpack: Expected 3

openlibrary (https://github.com/internetarchive/openlibrary)

openlibrary/i18n/__init__.py

[error] invalid-assignment - :209:13 - Not enough values to unpack: Expected 6

openlibrary/plugins/worksearch/code.py

[error] invalid-argument-type - :301:59 -
Old: Argument to bound method `q_to_solr_params` is incorrect: Expected `list[tuple[str, str]]`, found `list[Unknown | tuple[str, Unknown | int] | tuple[str, str]]`
New: Argument to bound method `q_to_solr_params` is incorrect: Expected `list[tuple[str, str]]`, found `list[Unknown | tuple[str, str] | tuple[str, Unknown | int]]`

openlibrary/utils/isbn.py

[error] invalid-return-type - :112:12 - Return type does not match returned value: expected `tuple[str | None, str | None, str | None]`, found `tuple[str | None, @Todo]`

pandera (https://github.com/pandera-dev/pandera)

tests/pandas/test_dtypes.py

[error] invalid-assignment - :170:1 -
Old: Object of type `list[Unknown | tuple[dict[Unknown | <class 'int'> | <class 'Int'> | ... omitted 8 union elements, Unknown | str], list[Unknown | int]] | tuple[dict[Unknown | <class 'INT8'> | <class 'INT16'> | <class 'INT32'> | <class 'INT64'>, Unknown | str], list[Unknown | int | None]] | ... omitted 14 union elements]` is not assignable to `list[tuple[dict[Unknown, Unknown], list[Unknown]]]`
New: Object of type `list[Unknown | tuple[dict[Unknown | <class 'int'> | <class 'Int'> | ... omitted 8 union elements, Unknown | str], list[Unknown | int]] | tuple[dict[Unknown | <class 'INT8'> | <class 'INT16'> | <class 'INT32'> | <class 'INT64'>, Unknown | str], list[Unknown | int | None]] | ... omitted 15 union elements]` is not assignable to `list[tuple[dict[Unknown, Unknown], list[Unknown]]]`

poetry (https://github.com/python-poetry/poetry)

src/poetry/utils/env/mock_env.py

[error] invalid-assignment - :34:13 -
Old: Object of type `tuple[@Todo, Literal["final"], Literal[0]]` is not assignable to `tuple[int, int, int] | tuple[int, int, int, str, int]`
New: Object of type `tuple[*tuple[int | str, ...], Literal["final"], Literal[0]]` is not assignable to `tuple[int, int, int] | tuple[int, int, int, str, int]`

tests/puzzle/test_solver.py

[error] invalid-assignment - :614:9 - Object of type `list[Unknown | str]` is not assignable to `list[Literal["a", "b", "download-package", "install-package"]]`

prefect (https://github.com/PrefectHQ/prefect)

src/prefect/blocks/core.py

[error] invalid-assignment - :86:1 - Object of type `tuple[<class 'list'>, <class 'dict'>, <class 'tuple'>, *tuple[typing.Union | <class 'UnionType'>, ...]]` is not assignable to `tuple[type, ...]`

pytest (https://github.com/pytest-dev/pytest)

src/_pytest/reports.py

[error] invalid-return-type - :302:12 - Return type does not match returned value: expected `tuple[str, int, str]`, found `tuple[@Todo, str]`

src/_pytest/terminal.py

[error] invalid-argument-type - :1589:23 - Argument to bound method `append` is incorrect: Expected `tuple[int, str, int | None, str]`, found `tuple[int, @Todo]`

pytest-robotframework (https://github.com/detachhead/pytest-robotframework)

pytest_robotframework/_internal/robot/utils.py

[warning] redundant-cast - :231:25 - Value is already of type `list[object] | None`

rotki (https://github.com/rotki/rotki)

rotkehlchen/chain/evm/decoding/thegraph/balances.py

[error] invalid-argument-type - :139:43 - Argument to bound method `append` is incorrect: Expected `tuple[ChecksumAddress, ChecksumAddress, ChecksumAddress, int]`, found `tuple[@Todo, Unknown]`

scipy (https://github.com/scipy/scipy)

scipy/interpolate/tests/test_bsplines.py

[error] invalid-assignment - :1802:9 - Not enough values to unpack: Expected 4
[error] invalid-assignment - :1814:9 - Not enough values to unpack: Expected 4
[error] invalid-assignment - :1827:9 - Not enough values to unpack: Expected 4
[error] invalid-assignment - :1837:9 - Not enough values to unpack: Expected 4
[error] invalid-assignment - :1851:9 - Not enough values to unpack: Expected 4
[error] invalid-assignment - :1862:9 - Not enough values to unpack: Expected 3
[error] invalid-assignment - :1874:9 - Not enough values to unpack: Expected 3

spack (https://github.com/spack/spack)

lib/spack/spack/llnl/util/link_tree.py

[error] invalid-return-type - :116:20 - Return type does not match returned value: expected `tuple[str, str, str]`, found `tuple[str, @Todo]`
[error] invalid-return-type - :151:20 - Return type does not match returned value: expected `tuple[str, str, str]`, found `tuple[str, @Todo]`

lib/spack/spack/spec.py

[error] invalid-assignment - :5647:69 - Not enough values to unpack: Expected 3

strawberry (https://github.com/strawberry-graphql/strawberry)

strawberry/federation/schema.py

[error] invalid-assignment - :80:9 -
Old: Object of type `list[Unknown | NewType]` is not assignable to `Iterable[type]`
New: Object of type `list[Unknown | type | NewType]` is not assignable to `Iterable[type]`

sympy (https://github.com/sympy/sympy)

sympy/parsing/latex/__init__.py

[error] index-out-of-bounds - :117:12 - Index 3 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :118:30 - Index 2 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :120:59 - Index 3 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :125:12 - Index 7 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :126:30 - Index 2 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :128:53 - Index 3 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :133:43 - Index 3 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :135:30 - Index 5 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :136:12 - Index 7 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :139:37 - Index 2 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :140:30 - Index 6 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :140:47 - Index 4 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2
[error] index-out-of-bounds - :141:65 - Index 5 is out of bounds for tuple `tuple[@Todo, @Todo]` with length 2

vision (https://github.com/pytorch/vision)

test/test_datasets.py

[error] invalid-assignment - :698:9 - Invalid subscript assignment with key of type `Literal["trainval"]` and value of type `tuple[int, ...]` on object of type `dict[str, tuple[int, int, int] | tuple[int, int] | tuple[int]]`

torchvision/datasets/utils.py

[error] invalid-return-type - :268:16 - Return type does not match returned value: expected `tuple[str, str | None, str | None]`, found `tuple[@Todo, @Todo]`

zulip (https://github.com/zulip/zulip)

zerver/actions/message_send.py

[error] invalid-assignment - :1135:13 -
Old: Object of type `dict[str, Unknown | None]` is not assignable to `UserData`
New: Object of type `dict[str, Unknown | int | None]` is not assignable to `UserData`