Summary

Comparing branches/commits:
Old: main (merge base) 68343e7e
New: 21552/merge 6519e401
Lint Rule Removed Added Changed
Total 28 39 14
unused-ignore-comment 27 0 0
invalid-return-type 1 17 0
unresolved-attribute 0 10 0
invalid-assignment 0 6 2
type-assertion-failure 0 0 8
invalid-argument-type 0 4 2
possibly-missing-attribute 0 0 2
invalid-super-argument 0 1 0
too-many-positional-arguments 0 1 0

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

src/bokeh/protocol/__init__.py

[warning] unused-ignore-comment - :131:65 - Unused blanket `type: ignore` directive

comtypes (https://github.com/enthought/comtypes)

comtypes/client/__init__.py

[warning] unused-ignore-comment - :29:80 - Unused blanket `type: ignore` directive

comtypes/_post_coinit/activeobj.py

[warning] unused-ignore-comment - :45:42 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :46:15 - Unused blanket `type: ignore` directive

comtypes/_post_coinit/misc.py

[warning] unused-ignore-comment - :106:18 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :142:15 - Unused blanket `type: ignore` directive

comtypes/errorinfo.py

[warning] unused-ignore-comment - :90:17 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :97:25 - Unused blanket `type: ignore` directive

comtypes/safearray.py

[error] invalid-super-argument - :393:13 - `Self@__setitem__` is not an instance or subclass of `type[_Pointer[Unknown]]` in `super(type[_Pointer[Unknown]], Self@__setitem__)` call

comtypes/test/test_basic.py

[error] unresolved-attribute - :31:30 - Object of type `_Pointer[Unknown]` has no attribute `AddRef`
[error] unresolved-attribute - :33:30 - Object of type `_Pointer[Unknown]` has no attribute `Release`
[error] unresolved-attribute - :40:26 - Object of type `_Pointer[Unknown]` has no attribute `AddRef`
[error] unresolved-attribute - :41:26 - Object of type `_Pointer[Unknown]` has no attribute `Release`
[error] unresolved-attribute - :43:17 - Object of type `_Pointer[Unknown]` has no attribute `QueryInterface`
[error] unresolved-attribute - :45:26 - Object of type `_Pointer[Unknown]` has no attribute `AddRef`
[error] unresolved-attribute - :46:26 - Object of type `_Pointer[Unknown]` has no attribute `Release`
[error] unresolved-attribute - :89:9 - Object of type `type[_Pointer[Unknown]]` has no attribute `QueryInterface`

comtypes/test/test_comobject.py

[warning] unused-ignore-comment - :78:44 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :79:45 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :80:54 - Unused blanket `type: ignore` directive

comtypes/test/test_outparam.py

[error] unresolved-attribute - :62:12 - Object of type `_Pointer[Unknown]` has no attribute `DidAlloc`

comtypes/typeinfo.py

[warning] unused-ignore-comment - :291:40 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :439:47 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :468:24 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :659:16 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :674:16 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :683:18 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :690:17 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :697:18 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :722:19 - Unused blanket `type: ignore` directive

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

src/hydra_zen/structured_configs/_implementations.py

[warning] unused-ignore-comment - :668:8 - Unused blanket `type: ignore` directive

tests/annotations/behaviors.py

[error] unresolved-attribute - :50:29 - Object of type `Path` has no attribute `x`
[error] invalid-assignment - :54:26 - Object of type `Path` is not assignable to `int`

tests/annotations/declarations.py

[error] invalid-return-type - :501:16 - Function always implicitly returns `None`, which is not assignable to return type `type[@Todo]`
[error] invalid-return-type - :503:16 - Function always implicitly returns `None`, which is not assignable to return type `type[@Todo]`

tests/annotations/mypy_checks.py

[error] type-assertion-failure - :18 -
Old: Type `A` does not match asserted type `Unknown`
New: Type `A` does not match asserted type `Path`
[error] type-assertion-failure - :19 -
Old: Type `A` does not match asserted type `Unknown`
New: Type `A` does not match asserted type `Path`
[error] type-assertion-failure - :22 -
Old: Type `str` does not match asserted type `Unknown`
New: Type `str` does not match asserted type `Path`
[error] type-assertion-failure - :23 -
Old: Type `str` does not match asserted type `Unknown`
New: Type `str` does not match asserted type `Path`
[error] type-assertion-failure - :42 -
Old: Type `A` does not match asserted type `Unknown`
New: Type `A` does not match asserted type `Path`
[error] type-assertion-failure - :43 -
Old: Type `A` does not match asserted type `Unknown`
New: Type `A` does not match asserted type `Path`
[error] type-assertion-failure - :46 -
Old: Type `str` does not match asserted type `Unknown`
New: Type `str` does not match asserted type `Path`
[error] type-assertion-failure - :47 -
Old: Type `str` does not match asserted type `Unknown`
New: Type `str` does not match asserted type `Path`

mkosi (https://github.com/systemd/mkosi)

mkosi/config.py

[warning] unused-ignore-comment - :5862:43 - Unused blanket `type: ignore` directive

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)

bson/codec_options.py

[error] invalid-argument-type - :400:45 - Argument to function `issubclass` is incorrect: Expected `type`, found `object`

bson/json_util.py

[warning] unused-ignore-comment - :527:75 - Unused blanket `type: ignore` directive

bson/regex.py

[error] invalid-return-type - :83:16 - Return type does not match returned value: expected `Regex[_T@Regex]`, found `Regex[str]`

bson/son.py

[error] invalid-assignment - :43:31 - Object of type `<class 'Pattern[str]'>` is not assignable to `<class 'Pattern[Any]'>`

pymongo/asynchronous/auth.py

[error] invalid-argument-type - :131 -
Old: Argument to bound method `__init__` is incorrect: Expected `bytes | bytearray`, found `@Todo | None | bytes`
New: Argument to bound method `__init__` is incorrect: Expected `bytes | bytearray`, found `Unknown | None | bytes`
[error] invalid-assignment - :365 -
Old: Object of type `dict[Unknown | str, Unknown | ((credentials: @Todo, conn: AsyncConnection) -> CoroutineType[Any, Any, None]) | ((credentials: @Todo, conn: AsyncConnection, reauthenticate: bool) -> CoroutineType[Any, Any, Mapping[str, Any] | None]) | partial[Unknown]]` is not assignable to `Mapping[str, (...) -> Coroutine[Any, Any, None]]`
New: Object of type `dict[Unknown | str, Unknown | ((credentials: Unknown, conn: AsyncConnection) -> CoroutineType[Any, Any, None]) | ((credentials: Unknown, conn: AsyncConnection, reauthenticate: bool) -> CoroutineType[Any, Any, Mapping[str, Any] | None]) | partial[Unknown]]` is not assignable to `Mapping[str, (...) -> Coroutine[Any, Any, None]]`

pymongo/synchronous/auth.py

[error] invalid-argument-type - :128 -
Old: Argument to bound method `__init__` is incorrect: Expected `bytes | bytearray`, found `@Todo | None | bytes`
New: Argument to bound method `__init__` is incorrect: Expected `bytes | bytearray`, found `Unknown | None | bytes`
[error] invalid-assignment - :360 -
Old: Object of type `dict[Unknown | str, Unknown | ((credentials: @Todo, conn: Connection) -> None) | ((credentials: @Todo, conn: Connection, reauthenticate: bool) -> Mapping[str, Any] | None) | partial[Unknown]]` is not assignable to `Mapping[str, (...) -> None]`
New: Object of type `dict[Unknown | str, Unknown | ((credentials: Unknown, conn: Connection) -> None) | ((credentials: Unknown, conn: Connection, reauthenticate: bool) -> Mapping[str, Any] | None) | partial[Unknown]]` is not assignable to `Mapping[str, (...) -> None]`

mypy (https://github.com/python/mypy)

mypy/typeshed/stdlib/collections/__init__.pyi

[error] too-many-positional-arguments - :43:11 - Too many positional arguments to class `tuple`: expected 1, got 2

pip (https://github.com/pypa/pip)

src/pip/_vendor/truststore/_macos.py

[warning] unused-ignore-comment - :294:56 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :314:71 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :337:76 - Unused blanket `type: ignore` directive

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

psycopg/psycopg/connection.py

[error] invalid-assignment - :78:9 - Object of type `<class 'Cursor'>` is not assignable to attribute `cursor_factory` of type `type[Cursor[Row@Connection]]`
[error] invalid-assignment - :79:9 - Object of type `<class 'ServerCursor'>` is not assignable to attribute `server_cursor_factory` of type `type[ServerCursor[Row@Connection]]`

psycopg/psycopg/connection_async.py

[error] invalid-assignment - :82:9 - Object of type `<class 'AsyncCursor'>` is not assignable to attribute `cursor_factory` of type `type[AsyncCursor[Row@AsyncConnection]]`
[error] invalid-assignment - :83:9 - Object of type `<class 'AsyncServerCursor'>` is not assignable to attribute `server_cursor_factory` of type `type[AsyncServerCursor[Row@AsyncConnection]]`

psycopg/psycopg/types/composite.py

[error] invalid-return-type - :539:12 - Return type does not match returned value: expected `type[_CompositeLoader[T@_make_loader]]`, found `type`
[error] invalid-return-type - :556:12 - Return type does not match returned value: expected `type[_CompositeBinaryLoader[T@_make_binary_loader]]`, found `type`
[error] invalid-return-type - :575:12 - Return type does not match returned value: expected `type[_SequenceDumper[T@_make_dumper]]`, found `type`
[error] invalid-return-type - :594:12 - Return type does not match returned value: expected `type[_SequenceBinaryDumper[T@_make_binary_dumper]]`, found `type`

psycopg/psycopg/types/enum.py

[error] invalid-return-type - :183:12 - Return type does not match returned value: expected `type[_BaseEnumLoader[E@_make_loader]]`, found `type`
[error] invalid-return-type - :191:12 - Return type does not match returned value: expected `type[_BaseEnumLoader[E@_make_binary_loader]]`, found `type`
[error] invalid-return-type - :199:12 - Return type does not match returned value: expected `type[_BaseEnumDumper[E@_make_dumper]]`, found `type`
[error] invalid-return-type - :207:12 - Return type does not match returned value: expected `type[_BaseEnumDumper[E@_make_binary_dumper]]`, found `type`

psycopg/psycopg/types/multirange.py

[error] invalid-return-type - :407:12 - Return type does not match returned value: expected `type[MultirangeLoader[Any]]`, found `type`
[error] invalid-return-type - :412:12 - Return type does not match returned value: expected `type[MultirangeBinaryLoader[Any]]`, found `type`

psycopg/psycopg/types/range.py

[error] invalid-return-type - :586:12 - Return type does not match returned value: expected `type[RangeLoader[Any]]`, found `type`
[error] invalid-return-type - :591:12 - Return type does not match returned value: expected `type[RangeBinaryLoader[Any]]`, found `type`

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

pydantic/types.py

[error] invalid-return-type - :852:12 - Return type does not match returned value: expected `type[set[HashableItemType@conset]]`, found `<typing.Annotated special form>`
[error] invalid-return-type - :868:12 - Return type does not match returned value: expected `type[frozenset[HashableItemType@confrozenset]]`, found `<typing.Annotated special form>`
[error] invalid-return-type - :903:12 - Return type does not match returned value: expected `type[list[AnyItemType@conlist]]`, found `<typing.Annotated special form>`

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

src/_pytest/capture.py

[error] invalid-argument-type - :940:17 - Argument to bound method `__init__` is incorrect: Argument type `AnyStr@CaptureFixture` does not satisfy constraints (`str`, `bytes`) of type variable `AnyStr`
[error] invalid-argument-type - :941:17 - Argument to bound method `__init__` is incorrect: Argument type `AnyStr@CaptureFixture` does not satisfy constraints (`str`, `bytes`) of type variable `AnyStr`

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

scipy/stats/_multicomp.py

[warning] possibly-missing-attribute - :69 -
Old: Attribute `low` may be missing on object of type `@Todo | None`
New: Attribute `low` may be missing on object of type `Unknown | None`
[warning] possibly-missing-attribute - :70 -
Old: Attribute `high` may be missing on object of type `@Todo | None`
New: Attribute `high` may be missing on object of type `Unknown | None`

static-frame (https://github.com/static-frame/static-frame)

static_frame/core/index_datetime.py

[warning] unused-ignore-comment - :708:54 - Unused blanket `type: ignore` directive

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

tests/test_formparser.py

[error] invalid-argument-type - :437:76 - Argument to bound method `__init__` is incorrect: Expected `type[MultiDict[str, Any]] | None`, found `<class 'dict'>`