Summary

Comparing branches/commits:
Old: main (merge base) c5ac9988
New: 19595/merge dad2a938
Lint Rule Removed Added Changed
Total 10 127 11
unresolved-attribute 0 97 3
invalid-argument-type 1 10 7
invalid-return-type 1 11 1
unused-ignore-comment 8 0 0
possibly-unbound-attribute 0 6 0
call-non-callable 0 1 0
not-iterable 0 1 0
unsupported-operator 0 1 0

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

aiohttp/connector.py

[error] invalid-argument-type - :1545:29 - Argument to bound method `__init__` is incorrect: Expected `RequestInfo`, found `Unknown | under_cached_property[Unknown]`
[error] invalid-argument-type - :1546:29 - Argument to bound method `__init__` is incorrect: Expected `tuple[ClientResponse, ...]`, found `Unknown | under_cached_property[Unknown]`
[error] invalid-argument-type - :1549:29 - Argument to bound method `__init__` is incorrect: Expected `MultiMapping[str] | None`, found `Unknown | under_cached_property[Unknown]`

aiohttp/web_middlewares.py

[error] unsupported-operator - :109:42 - Operator `+` is unsupported between objects of type `Unknown | under_cached_property[Unknown]` and `Unknown | Literal[""]`

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

src/anyio/_core/_contextmanagers.py

[error] invalid-return-type - :165:16 - Return type does not match returned value: expected `_T_co`, found `object`

src/anyio/_core/_sockets.py

[error] invalid-argument-type - :596:64 - Argument to function `convert_ipv6_sockaddr` is incorrect: Expected `tuple[str, int, int, int] | tuple[str, int]`, found `tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]`

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

src/bandersnatch/tests/test_package.py

[error] unresolved-attribute - :31:12 -
Old: Type `bound method Master.get_package_metadata(package_name: str, serial: int = Literal[0]) -> @Todo(generic types.CoroutineType)` has no attribute `await_count`
New: Type `bound method Master.get_package_metadata(package_name: str, serial: int = Literal[0]) -> CoroutineType[Any, Any, Any]` has no attribute `await_count`
[error] unresolved-attribute - :58:12 -
Old: Type `bound method Master.get_package_metadata(package_name: str, serial: int = Literal[0]) -> @Todo(generic types.CoroutineType)` has no attribute `await_count`
New: Type `bound method Master.get_package_metadata(package_name: str, serial: int = Literal[0]) -> CoroutineType[Any, Any, Any]` has no attribute `await_count`

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

discord/webhook/async_.py

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

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

dragonchain/lib/database/redis_utest.py

[error] unresolved-attribute - :46:9 -
Old: Type `def _initialize_async_redis(host: str, port: int, wait_time: int = Literal[30]) -> @Todo(generic types.CoroutineType)` has no attribute `assert_called_once`
New: Type `def _initialize_async_redis(host: str, port: int, wait_time: int = Literal[30]) -> CoroutineType[Any, Any, Unknown]` has no attribute `assert_called_once`

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

freqtrade/exchange/binance_public_data.py

[error] invalid-return-type - :96:16 -
Old: Return type does not match returned value: expected `DataFrame`, found `@Todo(generic `typing.Awaitable` type) | Series[Any]`
New: Return type does not match returned value: expected `DataFrame`, found `Series[Any] | Unknown`

graphql-core (https://github.com/graphql-python/graphql-core)

src/graphql/pyutils/gather_with_cancel.py

[error] invalid-return-type - :28:16 - Return type does not match returned value: expected `list[Any]`, found `tuple[Unknown]`
[error] invalid-return-type - :30:16 - Return type does not match returned value: expected `list[Any]`, found `tuple[Unknown]`

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

mesonbuild/scripts/run_tool.py

[error] invalid-return-type - :49:12 - Return type does not match returned value: expected `int`, found `int | None`

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

test/mitmproxy/addons/test_clientplayback.py

[error] invalid-argument-type - :18:1 - Argument to function `asynccontextmanager` is incorrect: Expected `(...) -> AsyncIterator[Unknown]`, found `def tcp_server(handle_conn, **server_args) -> Unknown | tuple[str, int]`

test/mitmproxy/addons/test_proxyserver.py

[error] invalid-argument-type - :337:1 - Argument to function `asynccontextmanager` is incorrect: Expected `(...) -> AsyncIterator[Unknown]`, found `def udp_server(handle_datagram: (DatagramTransport, bytes, tuple[str, int], /) -> None) -> Unknown | tuple[str, int]`

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

pymongo/asynchronous/server.py

[warning] unused-ignore-comment - :273:94 - Unused blanket `type: ignore` directive

pymongo/synchronous/helpers.py

[warning] unused-ignore-comment - :86:56 - Unused blanket `type: ignore` directive

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

mypy_primer/utils.py

[error] invalid-return-type - :114:12 - Return type does not match returned value: expected `tuple[CompletedProcess[str], int | float]`, found `tuple[CompletedProcess[@Todo(generic `typing.Awaitable` type) | None], int | float]`

paasta (https://github.com/yelp/paasta)

paasta_tools/contrib/get_running_task_allocation.py

[error] invalid-argument-type - :102:17 - Argument is incorrect: Expected `str`, found `str | None`

paasta_tools/instance/kubernetes.py

[error] invalid-argument-type - :816:17 - Argument to function `get_replicaset_status` is incorrect: Expected `Sequence[Future[dict[str, Any]]]`, found `Sequence[Future[dict[str, Any]]] | None`
[error] invalid-return-type - :821:12 - Return type does not match returned value: expected `list[KubernetesVersionDict]`, found `tuple[Unknown]`
[error] invalid-return-type - :1099:12 - Return type does not match returned value: expected `list[KubernetesVersionDict]`, found `tuple[Unknown]`

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

src/integrations/prefect-aws/tests/workers/test_ecs_worker.py

[error] unresolved-attribute - :406:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :407:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :500:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :501:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :542:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :543:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :592:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :593:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :638:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :639:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :669:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :670:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :703:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :704:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :757:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :758:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :795:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :796:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :835:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :836:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :892:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :893:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :936:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :937:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :963:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :964:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :988:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :989:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1018:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1064:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1113:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1165:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1306:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1342:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1544:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1545:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1587:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1588:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1618:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1619:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1656:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1657:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1659:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1660:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1703:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1704:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1706:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1707:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1731:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1733:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1735:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1761:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1762:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1764:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1792:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1794:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1796:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1829:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1830:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1832:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1834:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1836:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1868:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1870:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1872:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1902:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1904:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1906:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1967:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :1969:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :1971:38 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2001:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2002:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2035:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2036:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2072:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2073:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2129:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2130:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2174:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2175:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2229:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2230:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2275:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2276:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2318:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2319:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2365:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2366:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2458:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2459:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2482:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2483:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2676:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2677:36 - Type `str` has no attribute `identifier`
[error] unresolved-attribute - :2704:12 - Type `str` has no attribute `status_code`
[error] unresolved-attribute - :2705:36 - Type `str` has no attribute `identifier`

src/prefect/cli/deploy.py

[error] invalid-argument-type - :688:13 -
Old: Argument to function `_generate_default_pull_action` is incorrect: Expected `list[dict[str, Any]]`, found `(dict[str, Any] & ~AlwaysFalsy) | dict[Unknown, Unknown] | @Todo(generic `typing.Awaitable` type)`
New: Argument to function `_generate_default_pull_action` is incorrect: Expected `list[dict[str, Any]]`, found `(dict[str, Any] & ~AlwaysFalsy) | dict[Unknown, Unknown] | dict[str, list[dict[str, Any]]]`

src/prefect/cli/work_pool.py

[error] invalid-argument-type - :208:42 - Argument to function `provision` is incorrect: Expected `dict[str, Any]`, found `dict[str, Any] | None | Any`
[error] invalid-argument-type - :226:17 - Argument is incorrect: Expected `dict[str, Any]`, found `dict[str, Any] | None | Any`
[warning] possibly-unbound-attribute - :869:33 - Attribute `id` on type `BlockSchema | None` is possibly unbound

src/prefect/cli/worker.py

[error] call-non-callable - :159:14 - Object of type `None` is not callable

src/prefect/events/related.py

[error] invalid-argument-type - :100:17 -
Old: Argument to function `_get_and_cache_related_object` is incorrect: Expected `(UUID | str, /) -> Awaitable[ObjectBaseModel | None]`, found `bound method PrefectClient.read_flow_run(flow_run_id: UUID) -> @Todo(generic types.CoroutineType)`
New: Argument to function `_get_and_cache_related_object` is incorrect: Expected `(UUID | str, /) -> Awaitable[ObjectBaseModel | None]`, found `bound method PrefectClient.read_flow_run(flow_run_id: UUID) -> CoroutineType[Any, Any, FlowRun]`
[error] invalid-argument-type - :123:21 -
Old: Argument to function `_get_and_cache_related_object` is incorrect: Expected `(UUID | str, /) -> Awaitable[ObjectBaseModel | None]`, found `bound method PrefectClient.read_flow(flow_id: UUID) -> @Todo(generic types.CoroutineType)`
New: Argument to function `_get_and_cache_related_object` is incorrect: Expected `(UUID | str, /) -> Awaitable[ObjectBaseModel | None]`, found `bound method PrefectClient.read_flow(flow_id: UUID) -> CoroutineType[Any, Any, Flow]`
[error] invalid-argument-type - :142:25 -
Old: Argument to function `_get_and_cache_related_object` is incorrect: Expected `(UUID | str, /) -> Awaitable[ObjectBaseModel | None]`, found `bound method PrefectClient.read_work_queue(id: UUID) -> @Todo(generic types.CoroutineType)`
New: Argument to function `_get_and_cache_related_object` is incorrect: Expected `(UUID | str, /) -> Awaitable[ObjectBaseModel | None]`, found `bound method PrefectClient.read_work_queue(id: UUID) -> CoroutineType[Any, Any, WorkQueue]`
[error] invalid-argument-type - :153:25 -
Old: Argument to function `_get_and_cache_related_object` is incorrect: Expected `(UUID | str, /) -> Awaitable[ObjectBaseModel | None]`, found `bound method PrefectClient.read_work_pool(work_pool_name: str) -> @Todo(generic types.CoroutineType)`
New: Argument to function `_get_and_cache_related_object` is incorrect: Expected `(UUID | str, /) -> Awaitable[ObjectBaseModel | None]`, found `bound method PrefectClient.read_work_pool(work_pool_name: str) -> CoroutineType[Any, Any, WorkPool]`

src/prefect/flow_runs.py

[warning] possibly-unbound-attribute - :316:16 - Attribute `is_running` on type `State[Any] | None` is possibly unbound
[warning] possibly-unbound-attribute - :478:16 - Attribute `is_paused` on type `State[Any] | None` is possibly unbound
[warning] possibly-unbound-attribute - :484:12 - Attribute `type` on type `State[Any] | None` is possibly unbound

src/prefect/infrastructure/provisioners/cloud_run.py

[warning] possibly-unbound-attribute - :238:37 - Attribute `id` on type `BlockSchema | None` is possibly unbound

src/prefect/infrastructure/provisioners/container_instance.py

[warning] possibly-unbound-attribute - :731:37 - Attribute `id` on type `BlockSchema | None` is possibly unbound

src/prefect/server/api/artifacts.py

[error] invalid-return-type - :46:12 - Return type does not match returned value: expected `Artifact`, found `Artifact`

src/prefect/server/events/actions.py

[error] invalid-return-type - :626:16 - Return type does not match returned value: expected `list[str]`, found `tuple[Unknown]`

src/prefect/task_engine.py

[error] invalid-return-type - :1708:16 - Return type does not match returned value: expected `R | State[Any] | None | Coroutine[Any, Any, R | State[Any] | None]`, found `AsyncGenerator[Unknown, None]`

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

strawberry/http/async_base_view.py

[error] invalid-return-type - :213:20 - Return type does not match returned value: expected `ExecutionResult | list[ExecutionResult] | SubscriptionExecutionResult`, found `tuple[Unknown]`

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

src/trio/_tests/test_testing.py

[error] invalid-return-type - :423:20 - Return type does not match returned value: expected `bytes`, found `bytearray`

src/trio/_core/_tests/test_run.py

[warning] unused-ignore-comment - :1736:28 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :1746:30 - Unused blanket `type: ignore` directive

src/trio/_tests/test_highlevel_open_tcp_listeners.py

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

src/trio/_tests/test_subprocess.py

[error] invalid-argument-type - :370:32 - Argument to function `run_process` is incorrect: Expected `bytes | bytearray | memoryview[Unknown] | int | HasFileno | None`, found `Literal["oh no, it's text"]`

src/trio/_tests/test_util.py

[error] not-iterable - :120:28 - Object of type `CoroutineType[Any, Any, None]` is not iterable
[warning] unused-ignore-comment - :109:38 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :154:49 - Unused blanket `type: ignore` directive

src/trio/testing/_fake_net.py

[error] invalid-argument-type - :330:56 -
Old: Argument to bound method `from_python_sockaddr` is incorrect: Expected `tuple[str, int] | tuple[str, int, int, int]`, found `None | @Todo(generic `typing.Awaitable` type)`
New: Argument to bound method `from_python_sockaddr` is incorrect: Expected `tuple[str, int] | tuple[str, int, int, int]`, found `None | Unknown`

websockets (https://github.com/aaugustin/websockets)

src/websockets/legacy/server.py

[error] invalid-argument-type - :607:34 -
Old: Argument to bound method `__init__` is incorrect: Expected `bytes`, found `@Todo(generic `typing.Awaitable` type) | Literal[HTTPStatus.SERVICE_UNAVAILABLE, b"Server is shutting down.\n"] | list[Unknown]`
New: Argument to bound method `__init__` is incorrect: Expected `bytes`, found `Unknown | Literal[HTTPStatus.SERVICE_UNAVAILABLE, b"Server is shutting down.\n"] | list[Unknown]`