Summary

Comparing branches/commits:
Old: main (merge base) f4d02735
New: 19328/merge 3a240bc4
Lint Rule Removed Added Changed
Total 67 23 11
type-assertion-failure 35 1 0
unresolved-attribute 13 2 2
invalid-argument-type 2 8 5
possibly-unbound-attribute 10 0 1
invalid-assignment 0 7 1
unused-ignore-comment 7 0 0
call-non-callable 0 4 0
invalid-return-type 0 0 2
subclass-of-final-class 0 1 0

AutoSplit (https://github.com/Toufool/AutoSplit)

src/capture_method/__init__.py

[error] call-non-callable - :137:9 - Method `__getitem__` of type `bound method CaptureMethodDict.__getitem__(key: Never, /) -> type[CaptureMethodBase]` is not callable on object of type `CaptureMethodDict`
[error] call-non-callable - :147:9 - Method `__getitem__` of type `bound method CaptureMethodDict.__getitem__(key: Never, /) -> type[CaptureMethodBase]` is not callable on object of type `CaptureMethodDict`
[error] call-non-callable - :148:1 - Method `__getitem__` of type `bound method CaptureMethodDict.__getitem__(key: Never, /) -> type[CaptureMethodBase]` is not callable on object of type `CaptureMethodDict`

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

ddtrace/vendor/psutil/_common.py

[error] invalid-assignment - :29:5 - Object of type `None` is not assignable to `Literal[AddressFamily.AF_INET6]`
[error] invalid-assignment - :33:5 - Object of type `None` is not assignable to `Literal[AddressFamily.AF_UNIX]`

django-stubs (https://github.com/typeddjango/django-stubs)

tests/assert_type/db/models/_enums.py

[error] type-assertion-failure - :15:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :17:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :23:1 - Argument does not have asserted type `Literal[True]`

tests/assert_type/db/models/test_enums.py

[error] subclass-of-final-class - :90:19 - Class `VoidChoices` cannot inherit from final class `BaseEmptyChoices`
[error] type-assertion-failure - :171:1 - Argument does not have asserted type `@Todo(Support for `typing.TypeAlias`)`
[error] type-assertion-failure - :139:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :140:1 - Argument does not have asserted type `list[@Todo(Support for `typing.TypeAlias`)]`
[error] type-assertion-failure - :141:1 - Argument does not have asserted type `list[int]`
[error] type-assertion-failure - :142:1 - Argument does not have asserted type `list[tuple[int, @Todo(Support for `typing.TypeAlias`)]]`
[error] type-assertion-failure - :147:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :150:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :151:1 - Argument does not have asserted type `list[@Todo(Support for `typing.TypeAlias`)]`
[error] type-assertion-failure - :152:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :153:1 - Argument does not have asserted type `list[tuple[str, @Todo(Support for `typing.TypeAlias`)]]`
[error] type-assertion-failure - :158:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :162:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :163:1 - Argument does not have asserted type `list[@Todo(Support for `typing.TypeAlias`)]`
[error] type-assertion-failure - :170:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :176:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :184:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :189:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :191:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :197:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :202:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :210:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :216:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :224:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :230:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :238:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :243:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :245:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :251:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :255:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :257:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :263:1 - Argument does not have asserted type `Literal[True]`
[error] type-assertion-failure - :267:1 - Argument does not have asserted type `list[str]`
[error] type-assertion-failure - :269:1 - Argument does not have asserted type `list[str]`

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)

src/hydra_zen/structured_configs/_implementations.py

[warning] unused-ignore-comment - :492:89 - Unused blanket `type: ignore` directive

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

ignite/contrib/engines/common.py

[warning] unused-ignore-comment - :194:96 - Unused blanket `type: ignore` directive

tests/ignite/engine/test_custom_events.py

[error] invalid-argument-type - :190:34 - Argument to bound method `__call__` is incorrect: Expected `((...) -> Unknown) | None`, found `Literal["123"]`
[error] invalid-argument-type - :220:37 - Argument to function `default_event_filter` is incorrect: Expected `Engine`, found `None`
[error] invalid-argument-type - :220:43 - Argument to function `default_event_filter` is incorrect: Expected `int`, found `None`
[error] call-non-callable - :561:9 - Object of type `CustomEvents` is not callable

tests/ignite/metrics/test_frequency.py

[error] invalid-argument-type - :50:38 - Argument to bound method `attach` is incorrect: Expected `Events`, found `CallableEventWithFilter`

jinja (https://github.com/pallets/jinja)

src/jinja2/nodes.py

[warning] unused-ignore-comment - :758:45 - Unused blanket `type: ignore` directive

meson (https://github.com/mesonbuild/meson)

unittests/internaltests.py

[error] invalid-argument-type - :243:51 - Argument to bound method `__init__` is incorrect: Expected `bool`, found `Literal[MachineChoice.HOST]`
[error] invalid-argument-type - :271:51 - Argument to bound method `__init__` is incorrect: Expected `bool`, found `Literal[MachineChoice.HOST]`

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

src/poetry/console/exceptions.py

[error] invalid-assignment - :101:5 - Object of type `Literal[""]` is not assignable to `InitVar[str]`

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

src/integrations/prefect-dask/tests/test_task_runners.py

[error] invalid-argument-type - :193:17 - Argument is incorrect: Expected `StateType`, found `Literal[StateType.COMPLETED]`

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

src/_pytest/fixtures.py

[error] invalid-argument-type - :157:22 -
Old: Argument to function `assert_never` is incorrect: Expected `Never`, found `Scope`
New: Argument to function `assert_never` is incorrect: Expected `Never`, found `Scope & ~Literal[Scope.Function] & ~Literal[Scope.Class] & ~Literal[Scope.Module] & ~Literal[Scope.Package] & ~Literal[Scope.Session]`
[error] invalid-argument-type - :218:22 -
Old: Argument to function `assert_never` is incorrect: Expected `Never`, found `Scope`
New: Argument to function `assert_never` is incorrect: Expected `Never`, found `Scope & ~Literal[Scope.Function] & ~Literal[Scope.Session] & ~Literal[Scope.Package] & ~Literal[Scope.Module] & ~Literal[Scope.Class]`

src/_pytest/pathlib.py

[error] invalid-argument-type - :585:22 -
Old: Argument to function `assert_never` is incorrect: Expected `Never`, found `ImportMode`
New: Argument to function `assert_never` is incorrect: Expected `Never`, found `ImportMode & ~Literal[ImportMode.importlib] & ~Literal[ImportMode.append] & ~Literal[ImportMode.prepend]`

testing/test_cacheprovider.py

[error] invalid-argument-type - :1303:22 -
Old: Argument to function `assert_never` is incorrect: Expected `Never`, found `Action`
New: Argument to function `assert_never` is incorrect: Expected `Never`, found `Action & ~Literal[Action.MKDIR] & ~Literal[Action.SET]`
[error] invalid-argument-type - :1315:22 -
Old: Argument to function `assert_never` is incorrect: Expected `Never`, found `Action`
New: Argument to function `assert_never` is incorrect: Expected `Never`, found `Action & ~Literal[Action.MKDIR] & ~Literal[Action.SET]`

python-htmlgen (https://github.com/srittau/python-htmlgen)

test_htmlgen/form.py

[error] invalid-assignment - :51:9 - Object of type `str` is not assignable to attribute `autocomplete` of type `Autocomplete | None`

test_htmlgen/video.py

[error] invalid-assignment - :38:9 - Object of type `str` is not assignable to attribute `preload` of type `Preload | None`

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

rotkehlchen/assets/asset.py

[error] invalid-assignment - :77:5 - Object of type `Literal[False]` is not assignable to `InitVar[bool]`

rotkehlchen/chain/aggregator.py

[warning] unused-ignore-comment - :582:83 - Unused blanket `type: ignore` directive

rotkehlchen/exchanges/kraken.py

[warning] unused-ignore-comment - :953:57 - Unused blanket `type: ignore` directive

rotkehlchen/tests/api/test_exchanges.py

[error] invalid-argument-type - :524:52 - Argument to function `patch_poloniex_balances_query` is incorrect: Expected `Poloniex`, found `Binance`
[error] unresolved-attribute - :673:12 - Type `Binance` has no attribute `account_type`
[error] unresolved-attribute - :713:12 - Type `Binance` has no attribute `account_type`
[error] unresolved-attribute - :788:12 - Type `Binance` has no attribute `api_passphrase`
[error] unresolved-attribute - :801:12 - Type `Binance` has no attribute `api_passphrase`
[error] unresolved-attribute - :823:12 - Type `Binance` has no attribute `account_type`
[error] unresolved-attribute - :824:12 - Type `Binance` has no attribute `call_limit`
[error] unresolved-attribute - :825:12 - Type `Binance` has no attribute `reduction_every_secs`
[error] unresolved-attribute - :834:12 - Type `Binance` has no attribute `account_type`
[error] unresolved-attribute - :835:12 - Type `Binance` has no attribute `call_limit`
[error] unresolved-attribute - :836:12 - Type `Binance` has no attribute `reduction_every_secs`
[error] unresolved-attribute - :846:12 - Type `Binance` has no attribute `account_type`
[error] unresolved-attribute - :847:12 - Type `Binance` has no attribute `call_limit`
[error] unresolved-attribute - :848:12 - Type `Binance` has no attribute `reduction_every_secs`
[warning] unused-ignore-comment - :869:78 - Unused blanket `type: ignore` directive
[warning] possibly-unbound-attribute - :872:21 - Attribute `name` on type `Binance | None` is possibly unbound
[warning] possibly-unbound-attribute - :874:31 - Attribute `name` on type `Binance | None` is possibly unbound
[warning] possibly-unbound-attribute - :886:20 - Attribute `api_key` on type `Binance | None` is possibly unbound
[warning] possibly-unbound-attribute - :888:24 - Attribute `secret` on type `Binance | None` is possibly unbound
[warning] possibly-unbound-attribute - :893:54 - Attribute `session` on type `Binance | None` is possibly unbound
[warning] unused-ignore-comment - :897:78 - Unused blanket `type: ignore` directive
[warning] possibly-unbound-attribute - :900:21 - Attribute `name` on type `Binance | None` is possibly unbound
[warning] possibly-unbound-attribute - :902:31 - Attribute `name` on type `Binance | None` is possibly unbound
[warning] possibly-unbound-attribute - :914:20 - Attribute `api_key` on type `Binance | None` is possibly unbound
[warning] possibly-unbound-attribute - :916:24 - Attribute `secret` on type `Binance | None` is possibly unbound
[warning] possibly-unbound-attribute - :921:54 - Attribute `session` on type `Binance | None` is possibly unbound

rotkehlchen/tests/exchanges/test_kraken.py

[error] invalid-assignment - :933:5 -
Old: Object of type `Literal[False]` is not assignable to attribute `random_ledgers_data` on type `Binance | None`
New: Object of type `Literal[False]` is not assignable to attribute `random_ledgers_data` on type `Kraken | None`
[warning] possibly-unbound-attribute - :935:9 -
Old: Attribute `query_history_events` on type `Binance | None` is possibly unbound
New: Attribute `query_history_events` on type `Kraken | None` is possibly unbound

rotkehlchen/tests/unit/test_serialization.py

[error] invalid-argument-type - :62:30 - Argument to bound method `deserialize` is incorrect: Expected `str`, found `Literal[15]`

rotkehlchen/tests/utils/rotkehlchen.py

[error] invalid-argument-type - :181:52 - Argument to function `patch_poloniex_balances_query` is incorrect: Expected `Poloniex`, found `Binance & ~AlwaysFalsy`

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

src/trio/_abc.py

[error] unresolved-attribute - :223:17 -
Old: Type `def socket(self, family: Unknown | int = @Todo(Attribute access on enum classes), type: Unknown | int = @Todo(Attribute access on enum classes), proto: int = Literal[0]) -> SocketType` has no attribute `AddressFamily`
New: Type `def socket(self, family: Unknown | int = Literal[AddressFamily.AF_INET], type: Unknown | int = Literal[SocketKind.SOCK_STREAM], proto: int = Literal[0]) -> SocketType` has no attribute `AddressFamily`
[error] unresolved-attribute - :224:15 -
Old: Type `def socket(self, family: Unknown | int = @Todo(Attribute access on enum classes), type: Unknown | int = @Todo(Attribute access on enum classes), proto: int = Literal[0]) -> SocketType` has no attribute `SocketKind`
New: Type `def socket(self, family: Unknown | int = Literal[AddressFamily.AF_INET], type: Unknown | int = Literal[SocketKind.SOCK_STREAM], proto: int = Literal[0]) -> SocketType` has no attribute `SocketKind`

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

src/urllib3/_collections.py

[error] invalid-return-type - :386:20 -
Old: Return type does not match returned value: expected `list[str] | _DT`, found `_Sentinel | _DT | @Todo(Attribute access on enum classes)`
New: Return type does not match returned value: expected `list[str] | _DT`, found `(_Sentinel & ~Literal[_Sentinel.not_passed]) | (_DT & ~Literal[_Sentinel.not_passed])`

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

test/test_extended_models.py

[error] unresolved-attribute - :302:17 - Type `type[WeightsEnum]` has no attribute `DEFAULT`
[error] unresolved-attribute - :302:58 - Type `type[WeightsEnum]` has no attribute `DEFAULT`

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

yarl/_url.py

[error] invalid-return-type - :360:20 -
Old: Return type does not match returned value: expected `URL`, found `str | SplitResult | URL | UndefinedType | @Todo(Attribute access on enum classes)`
New: Return type does not match returned value: expected `URL`, found `str | SplitResult | URL | UndefinedType`

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

zerver/actions/message_send.py

[error] invalid-assignment - :1834:5 - Invalid assignment to data descriptor attribute `type` on type `Message` with custom `__set__` method