Summary

Comparing branches/commits:
Old: main (merge base) 5c817d89
New: 20796/merge 21844a62
Lint Rule Removed Added Changed
Total 8 21 25
invalid-argument-type 1 9 12
invalid-assignment 4 0 9
missing-typed-dict-key 0 10 0
possibly-missing-attribute 1 0 3
redundant-cast 0 2 0
invalid-return-type 0 0 1
unsupported-operator 1 0 0
unused-ignore-comment 1 0 0

aioredis (https://github.com/aio-libs/aioredis)

aioredis/client.py

[error] invalid-argument-type - :916:46 -
Old: Argument to bound method `__init__` is incorrect: Expected `int | None`, found `Unknown | str | int | None | float`
New: Argument to bound method `__init__` is incorrect: Expected `int | None`, found `Any | str | int | None | float`
[error] invalid-argument-type - :916:46 -
Old: Argument to bound method `__init__` is incorrect: Expected `type[Connection]`, found `Unknown | str | int | None | float`
New: Argument to bound method `__init__` is incorrect: Expected `int | None`, found `Any | str | int | None | float`
[error] invalid-argument-type - :916:46 - Argument to bound method `__init__` is incorrect: Expected `type[Connection]`, found `Any | str | int | None | float`

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

homeassistant/components/recorder/statistics.py

[error] invalid-assignment - :1706:9 - Object of type `set[Unknown | str]` is not assignable to `set[Literal["max", "mean", "min", "change"]] | None`
[warning] possibly-missing-attribute - :1790:16 - Attribute `isdisjoint` on type `set[Literal["max", "mean", "min", "change"]] | None` may be missing
[error] invalid-argument-type - :1801:17 - Argument to function `_get_max_mean_min_statistic` is incorrect: Expected `set[Literal["max", "mean", "min", "change"]]`, found `set[Literal["max", "mean", "min", "change"]] | None`
[error] unsupported-operator - :1804:12 - Operator `in` is not supported for types `str` and `None`, in comparing `Literal["change"]` with `set[Literal["max", "mean", "min", "change"]] | None`

dd-trace-py (https://github.com/DataDog/dd-trace-py)

ddtrace/llmobs/_integrations/bedrock.py

[warning] possibly-missing-attribute - :304:21 -
Old: Attribute `append` on type `Unknown | list[Unknown] | str` may be missing
New: Attribute `append` on type `Any | list[Unknown] | str` may be missing
[warning] possibly-missing-attribute - :314:25 -
Old: Attribute `append` on type `Unknown | list[Unknown] | str` may be missing
New: Attribute `append` on type `Any | list[Unknown] | str` may be missing

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

freqtrade/freqai/data_kitchen.py

[error] invalid-assignment - :827:17 -
Old: Method `__setitem__` of type `(bound method dict[str, dict[str, DataFrame]].__setitem__(key: str, value: dict[str, DataFrame], /) -> None) | (bound method dict[Unknown, Unknown].__setitem__(key: Unknown, value: Unknown, /) -> None)` cannot be called with a key of type `Unknown` and a value of type `DataFrame` on object of type `(dict[str, dict[str, DataFrame]] & ~AlwaysFalsy) | dict[Unknown, Unknown]`
New: Method `__setitem__` of type `bound method dict[str, dict[str, DataFrame]].__setitem__(key: str, value: dict[str, DataFrame], /) -> None` cannot be called with a key of type `Unknown` and a value of type `DataFrame` on object of type `dict[str, dict[str, DataFrame]]`
[error] invalid-assignment - :830:21 -
Old: Method `__setitem__` of type `(bound method dict[str, DataFrame].__setitem__(key: str, value: DataFrame, /) -> None) | (bound method dict[Unknown, Unknown].__setitem__(key: Unknown, value: Unknown, /) -> None)` cannot be called with a key of type `Unknown` and a value of type `dict[Unknown, Unknown]` on object of type `(dict[str, DataFrame] & ~AlwaysFalsy) | dict[Unknown, Unknown]`
New: Method `__setitem__` of type `bound method dict[str, DataFrame].__setitem__(key: str, value: DataFrame, /) -> None` cannot be called with a key of type `Unknown` and a value of type `dict[Unknown, Unknown]` on object of type `dict[str, DataFrame]`
[error] invalid-assignment - :836:13 -
Old: Method `__setitem__` of type `(bound method dict[str, dict[str, DataFrame]].__setitem__(key: str, value: dict[str, DataFrame], /) -> None) | (bound method dict[Unknown, Unknown].__setitem__(key: Unknown, value: Unknown, /) -> None)` cannot be called with a key of type `Unknown` and a value of type `DataFrame` on object of type `(dict[str, dict[str, DataFrame]] & ~AlwaysFalsy) | dict[Unknown, Unknown]`
New: Method `__setitem__` of type `bound method dict[str, dict[str, DataFrame]].__setitem__(key: str, value: dict[str, DataFrame], /) -> None` cannot be called with a key of type `Unknown` and a value of type `DataFrame` on object of type `dict[str, dict[str, DataFrame]]`

freqtrade/freqtradebot.py

[error] missing-typed-dict-key - :2417:19 - Missing required key 'active' in TypedDict `RPCProtectionMsg` constructor
[error] missing-typed-dict-key - :2417:19 - Missing required key 'id' in TypedDict `RPCProtectionMsg` constructor
[error] missing-typed-dict-key - :2417:19 - Missing required key 'lock_end_time' in TypedDict `RPCProtectionMsg` constructor
[error] missing-typed-dict-key - :2417:19 - Missing required key 'lock_end_timestamp' in TypedDict `RPCProtectionMsg` constructor
[error] missing-typed-dict-key - :2417:19 - Missing required key 'lock_time' in TypedDict `RPCProtectionMsg` constructor
[error] missing-typed-dict-key - :2417:19 - Missing required key 'lock_timestamp' in TypedDict `RPCProtectionMsg` constructor
[error] missing-typed-dict-key - :2417:19 - Missing required key 'pair' in TypedDict `RPCProtectionMsg` constructor
[error] missing-typed-dict-key - :2417:19 - Missing required key 'reason' in TypedDict `RPCProtectionMsg` constructor
[error] missing-typed-dict-key - :2417:19 - Missing required key 'side' in TypedDict `RPCProtectionMsg` constructor

mypy_primer (https://github.com/hauntsaninja/mypy_primer)

mypy_primer/main.py

[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_mypy` is incorrect: Expected `int | None`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_mypy` is incorrect: Expected `str | None`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_pyrefly` is incorrect: Expected `Path | None`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_pyrefly` is incorrect: Expected `str | None`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_pyrefly` is incorrect: Expected `str`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_pyright` is incorrect: Expected `str | None`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_ty` is incorrect: Expected `str | None`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 -
Old: Argument to function `setup_ty` is incorrect: Expected `str`, found `Unknown | str | None | int | Path`
New: Argument to function `setup_mypy` is incorrect: Expected `bool`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 - Argument to function `setup_mypy` is incorrect: Expected `int | None`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 - Argument to function `setup_mypy` is incorrect: Expected `str | None`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 - Argument to function `setup_pyrefly` is incorrect: Expected `Path | None`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 - Argument to function `setup_pyrefly` is incorrect: Expected `str | None`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 - Argument to function `setup_pyrefly` is incorrect: Expected `str`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 - Argument to function `setup_pyright` is incorrect: Expected `str | None`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 - Argument to function `setup_ty` is incorrect: Expected `str | None`, found `Any | str | None | int | Path`
[error] invalid-argument-type - :70:87 - Argument to function `setup_ty` is incorrect: Expected `str`, found `Any | str | None | int | Path`

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

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/integrations/prefect-docker/prefect_docker/images.py

[error] invalid-assignment - :64:5 -
Old: Object of type `dict[Unknown | str, Unknown | str | None | bool | dict[str, Any]]` is not assignable to `dict[str, dict[str, Any]]`
New: Object of type `dict[str, dict[str, Any] | str | None | bool]` is not assignable to `dict[str, dict[str, Any]]`

src/prefect/flows.py

[warning] redundant-cast - :3093:28 - Value is already of type `str`
[warning] redundant-cast - :3106:28 - Value is already of type `str`

pyjwt (https://github.com/jpadilla/pyjwt)

jwt/api_jws.py

[error] missing-typed-dict-key - :215:30 - Missing required key 'verify_signature' in TypedDict `SigOptions` constructor

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

src/_pytest/python.py

[error] invalid-assignment - :1442:13 - Object of type `dict[str, Literal["direct"]]` is not assignable to `dict[str, Literal["indirect", "direct"]]`

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

rotkehlchen/globaldb/handler.py

[warning] unused-ignore-comment - :587:82 - Unused blanket `type: ignore` directive

starlette (https://github.com/encode/starlette)

starlette/testclient.py

[warning] possibly-missing-attribute - :365:49 -
Old: Attribute `read` on type `Unknown | int | list[Unknown] | BytesIO` may be missing
New: Attribute `read` on type `Any | int | list[Unknown] | BytesIO` may be missing

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

sympy/core/evalf.py

[error] invalid-assignment - :1410:5 -
Old: Object of type `dict[Unknown | <class 'Symbol'> | <class 'Dummy'> | ... omitted 31 union elements, Unknown | ((x: Expr, prec: int, options: dict[str, Any]) -> Any) | ((expr: Float, prec: int, options: dict[str, Any]) -> Any) | ... omitted 17 union elements]` is not assignable to `dict[type[Expr], (Expr, int, dict[str, Any], /) -> Any]`
New: Object of type `dict[type[Expr], ((Expr, int, dict[str, Any], /) -> Any) | (def evalf_float(expr: Float, prec: int, options: dict[str, Any]) -> Any) | (def evalf_rational(expr: Rational, prec: int, options: dict[str, Any]) -> Any) | ... omitted 17 union elements]` is not assignable to `dict[type[Expr], (Expr, int, dict[str, Any], /) -> Any]`

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

references/classification/utils.py

[error] invalid-assignment - :420:5 -
Old: Object of type `tuple[type, ...] | tuple[Unknown, ...]` is not assignable to `list[type] | None`
New: Object of type `tuple[type | Unknown, ...]` is not assignable to `list[type] | None`

torchvision/prototype/transforms/_misc.py

[error] invalid-assignment - :56:13 - Object of type `dict[Any, tuple[int, int]]` is not assignable to `tuple[int, int] | dict[type, tuple[int, int] | None]`

torchvision/transforms/functional.py

[error] invalid-assignment - :1205:9 -
Old: Object of type `list[Unknown | (list[int | float] & Number) | float]` is not assignable to `list[int | float]`
New: Object of type `list[int | float | (list[int | float] & Number)]` is not assignable to `list[int | float]`
[error] invalid-assignment - :1225:13 -
Old: Object of type `list[Unknown | int | float]` is not assignable to `list[int] | None`
New: Object of type `list[int | float]` is not assignable to `list[int] | None`

torchvision/transforms/v2/functional/_geometry.py

[error] invalid-assignment - :649:9 -
Old: Object of type `list[Unknown | (list[int | float] & Number) | float]` is not assignable to `list[int | float]`
New: Object of type `list[int | float | (list[int | float] & Number)]` is not assignable to `list[int | float]`

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

zerver/openapi/python_examples.py

[error] invalid-return-type - :1338:12 -
Old: Return type does not match returned value: expected `tuple[int, str]`, found `tuple[Unknown, Unknown | str | list[Unknown | int]]`
New: Return type does not match returned value: expected `tuple[int, str]`, found `tuple[Unknown, Any | str | list[Unknown | int]]`