Summary

Comparing branches/commits:
Old: main (merge base) 24f6d2dc
New: 19971/merge df87c489
Lint Rule Removed Added Changed
Total 65 81 0
invalid-argument-type 5 57 0
possibly-unbound-attribute 29 9 0
too-many-positional-arguments 11 0 0
non-subscriptable 8 2 0
invalid-assignment 0 7 0
invalid-return-type 4 3 0
not-iterable 5 0 0
no-matching-overload 0 2 0
unused-ignore-comment 1 1 0
index-out-of-bounds 1 0 0
possibly-unbound-implicit-call 1 0 0

DateType (https://github.com/glyph/DateType)

src/datetype/__init__.py

[error] invalid-argument-type - :474:25 - Argument to class `Time` is incorrect: Expected `tzinfo | None`, found `_GMaybeTZDT@DateTime`
[error] invalid-argument-type - :479:10 - Argument to class `DateTime` is incorrect: Expected `tzinfo | None`, found `_FuncOptionalTZ@fromtimestamp`
[error] invalid-argument-type - :485:42 - Argument to class `DateTime` is incorrect: Expected `tzinfo | None`, found `_FuncOptionalTZ@now`
[error] invalid-argument-type - :500:36 - Argument to class `Time` is incorrect: Expected `tzinfo | None`, found `_FuncOptionalTZ@combine`
[error] invalid-argument-type - :501:14 - Argument to class `DateTime` is incorrect: Expected `tzinfo | None`, found `_FuncOptionalTZ@combine`
[error] invalid-argument-type - :507:14 - Argument to class `DateTime` is incorrect: Expected `tzinfo | None`, found `_FuncOptionalTZ@combine`

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

aiohttp/connector.py

[warning] possibly-unbound-attribute - :1413:12 - Attribute `endswith` on type `(Unknown & ~None) | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :1414:20 - Attribute `rstrip` on type `(Unknown & ~None) | under_cached_property[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :1435:17 - Attribute `rstrip` on type `(Unknown & ~AlwaysFalsy) | (str & ~AlwaysFalsy) | (Unknown & ~None) | under_cached_property[Unknown] | Unknown` is possibly unbound

aiohttp/cookiejar.py

[error] invalid-argument-type - :237:47 - Argument to function `is_ip_address` is incorrect: Expected `str | None`, found `Unknown | under_cached_property[Unknown]`
[warning] possibly-unbound-attribute - :276:24 - Attribute `startswith` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] non-subscriptable - :280:34 - Cannot subscript object of type `under_cached_property[Unknown]` with no `__getitem__` method
[warning] possibly-unbound-attribute - :280:43 - Attribute `rfind` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] invalid-argument-type - :350:26 - Argument to function `is_ip_address` is incorrect: Expected `str | None`, found `(Unknown & ~AlwaysFalsy) | (under_cached_property[Unknown] & ~AlwaysFalsy) | Literal[""]`
[warning] possibly-unbound-attribute - :357:26 - Attribute `split` on type `(Unknown & ~AlwaysFalsy) | (under_cached_property[Unknown] & ~AlwaysFalsy) | Literal[""]` is possibly unbound
[warning] possibly-unbound-attribute - :361:38 - Attribute `split` on type `Unknown | under_cached_property[Unknown]` is possibly unbound
[error] invalid-argument-type - :365:24 - Argument to function `len` is incorrect: Expected `Sized`, found `Unknown | under_cached_property[Unknown]`

aiohttp/helpers.py

[error] invalid-argument-type - :199:43 - Argument to function `__new__` is incorrect: Expected `str`, found `(Unknown & ~AlwaysFalsy) | (under_cached_property[Unknown] & ~AlwaysFalsy) | Literal[""]`
[error] invalid-argument-type - :199:59 - Argument to function `__new__` is incorrect: Expected `str`, found `(Unknown & ~AlwaysFalsy) | (under_cached_property[Unknown] & ~AlwaysFalsy) | Literal[""]`
[error] invalid-argument-type - :310:46 - Argument to function `proxy_bypass` is incorrect: Expected `str`, found `(Unknown & ~None) | under_cached_property[Unknown]`
[error] invalid-argument-type - :315:22 - Method `__getitem__` of type `bound method dict[str, ProxyInfo].__getitem__(key: str, /) -> ProxyInfo` cannot be called with key of type `Unknown | under_cached_property[Unknown]` on object of type `dict[str, ProxyInfo]`

aiohttp/web_urldispatcher.py

[warning] possibly-unbound-attribute - :814:55 - Attribute `split` on type `(Unknown & ~None) | under_cached_property[Unknown]` is possibly unbound
[error] invalid-return-type - :817:20 - Return type does not match returned value: expected `str`, found `(Unknown & ~None) | under_cached_property[Unknown]`
[error] invalid-return-type - :1260:12 - Return type does not match returned value: expected `str`, found `Unknown | under_cached_property[Unknown]`

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

src/anyio/streams/memory.py

[error] invalid-assignment - :39:5 - Object of type `dataclasses.Field[Unknown]` is not assignable to `T_Item@MemoryObjectItemReceiver`

src/anyio/_core/_contextmanagers.py

[error] invalid-argument-type - :14:37 - Argument to class `AbstractContextManager` is incorrect: Expected `bool | None`, found `_ExitT_co@_SupportsCtxMgr`
[error] invalid-argument-type - :20:10 - Argument to class `AbstractAsyncContextManager` is incorrect: Expected `bool | None`, found `_ExitT_co@_SupportsAsyncCtxMgr`
[error] invalid-argument-type - :76:15 - Argument to class `_SupportsCtxMgr` is incorrect: Expected `bool | None`, found `_ExitT_co@__exit__`
[error] invalid-argument-type - :169:15 - Argument to class `_SupportsAsyncCtxMgr` is incorrect: Expected `bool | None`, found `_ExitT_co@__aexit__`

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

src/bokeh/palettes.py

[error] invalid-argument-type - :1676:63 - Argument to function `__new__` is incorrect: Expected `Iterable[Unknown]`, found `float64`

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

ddtrace/debugging/_signal/model.py

[error] invalid-assignment - :82:5 - Object of type `dataclasses.Field[int | float]` is not assignable to `int | float`

ddtrace/ext/test_visibility/api.py

[error] invalid-argument-type - :38:59 - Argument to bound method `get_item_by_id` is incorrect: Argument type `TestVisibilityItemId@_get_item_tag` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :42:52 - Argument to bound method `get_item_by_id` is incorrect: Argument type `TestVisibilityItemId@_set_item_tag` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :46:52 - Argument to bound method `get_item_by_id` is incorrect: Argument type `TestVisibilityItemId@_set_item_tags` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :50:52 - Argument to bound method `get_item_by_id` is incorrect: Argument type `TestVisibilityItemId@_delete_item_tag` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :54:52 - Argument to bound method `get_item_by_id` is incorrect: Argument type `TestVisibilityItemId@_delete_item_tags` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :58:59 - Argument to bound method `get_item_by_id` is incorrect: Argument type `TestVisibilityItemId@_is_item_finished` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :108:30 - Argument to function `_get_item_tag` is incorrect: Argument type `TestVisibilityItemId@get_tag` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :112:23 - Argument to function `_set_item_tag` is incorrect: Argument type `TestVisibilityItemId@set_tag` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :116:24 - Argument to function `_set_item_tags` is incorrect: Argument type `TestVisibilityItemId@set_tags` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :120:26 - Argument to function `_delete_item_tag` is incorrect: Argument type `TestVisibilityItemId@delete_tag` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :124:27 - Argument to function `_delete_item_tags` is incorrect: Argument type `TestVisibilityItemId@delete_tags` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :128:34 - Argument to function `_is_item_finished` is incorrect: Argument type `TestVisibilityItemId@is_finished` does not satisfy upper bound of type variable `TestVisibilityItemId`

ddtrace/internal/endpoints.py

[error] invalid-assignment - :36:5 - Object of type `dataclasses.Field[int | float]` is not assignable to `int | float`

ddtrace/internal/rate_limiter.py

[error] invalid-assignment - :202:5 - Object of type `dataclasses.Field[int | float]` is not assignable to `int | float`

ddtrace/internal/test_visibility/api.py

[error] invalid-argument-type - :27:59 - Argument to bound method `get_item_by_id` is incorrect: Argument type `TestVisibilityItemId@_get_item_span | TestId` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :48:63 - Argument to bound method `get_item_by_id` is incorrect: Argument type `TestVisibilityItemId@stash_get` does not satisfy upper bound of type variable `TestVisibilityItemId`
[error] invalid-argument-type - :55:56 - Argument to bound method `get_item_by_id` is incorrect: Argument type `TestVisibilityItemId@stash_delete` does not satisfy upper bound of type variable `TestVisibilityItemId`

ddtrace/internal/ci_visibility/recorder.py

[error] invalid-argument-type - :902:39 - Argument to function `_is_item_itr_skippable` is incorrect: Argument type `TestVisibilityItemId@is_item_itr_skippable` does not satisfy upper bound of type variable `TestVisibilityItemId`

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

discord/asset.py

[error] invalid-argument-type - :174:39 - Argument to bound method `__init__` is incorrect: Expected `str | None`, found `str | None | Any | under_cached_property[Unknown]`
[error] no-matching-overload - :428:19 - No overload of function `splitext` matches arguments
[error] no-matching-overload - :513:19 - No overload of function `splitext` matches arguments

discord/ext/commands/core.py

[error] invalid-argument-type - :1498:15 - Argument to class `GroupMixin` is incorrect: Expected `Cog | None`, found `CogT@GroupMixin`
[error] invalid-argument-type - :1515:15 - Argument to class `GroupMixin` is incorrect: Expected `Cog | None`, found `CogT@GroupMixin`
[error] invalid-argument-type - :1557:15 - Argument to class `GroupMixin` is incorrect: Expected `Cog | None`, found `CogT@GroupMixin`
[error] invalid-argument-type - :1574:15 - Argument to class `GroupMixin` is incorrect: Expected `Cog | None`, found `CogT@GroupMixin`
[error] invalid-argument-type - :1615:13 - Argument to class `GroupMixin` is incorrect: Expected `Cog | None`, found `CogT@Group`
[error] too-many-positional-arguments - :128:35 - Too many positional arguments to class `Group`: expected 1, got 3
[error] too-many-positional-arguments - :815:31 - Too many positional arguments to class `Group`: expected 1, got 3
[error] too-many-positional-arguments - :833:39 - Too many positional arguments to class `Group`: expected 1, got 3
[error] too-many-positional-arguments - :1568:9 - Too many positional arguments to class `Group`: expected 1, got 3
[error] too-many-positional-arguments - :1746:91 - Too many positional arguments to class `Group`: expected 1, got 3
[error] too-many-positional-arguments - :1750:85 - Too many positional arguments to class `Group`: expected 1, got 3

discord/ext/commands/help.py

[warning] unused-ignore-comment - :503:66 - Unused blanket `type: ignore` directive
[error] too-many-positional-arguments - :849:44 - Too many positional arguments to class `Group`: expected 1, got 3
[error] too-many-positional-arguments - :1303:44 - Too many positional arguments to class `Group`: expected 1, got 3
[error] too-many-positional-arguments - :1589:44 - Too many positional arguments to class `Group`: expected 1, got 3

discord/ext/commands/hybrid.py

[error] too-many-positional-arguments - :88:35 - Too many positional arguments to class `Group`: expected 1, got 3
[error] too-many-positional-arguments - :601:19 - Too many positional arguments to class `Group`: expected 1, got 3

discord/utils.py

[error] non-subscriptable - :893:20 - Cannot subscript object of type `under_cached_property[Unknown]` with no `__getitem__` method
[warning] possibly-unbound-attribute - :894:24 - Attribute `get` on type `Unknown | under_cached_property[Unknown]` is possibly unbound

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

django-stubs/db/models/expressions.pyi

[error] invalid-argument-type - :245:25 - Argument to class `ExpressionWrapper` is incorrect: Expected `Q | Combinable`, found `_E@NegatedExpression`

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

dragonchain/lib/database/redis_utest.py

[warning] possibly-unbound-attribute - :102:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].set(name: @Todo(Support for `typing.TypeAlias`), value: @Todo(Support for `typing.TypeAlias`), ex: None | int | float | timedelta = None, px: None | int | float | timedelta = None, nx: bool = Literal[False], xx: bool = Literal[False], keepttl: bool = Literal[False], get: bool = Literal[False], exat: @Todo(Support for `typing.TypeAlias`) | None = None, pxat: @Todo(Support for `typing.TypeAlias`) | None = None) -> bool | None)` is possibly unbound
[warning] possibly-unbound-attribute - :106:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].set(name: @Todo(Support for `typing.TypeAlias`), value: @Todo(Support for `typing.TypeAlias`), ex: None | int | float | timedelta = None, px: None | int | float | timedelta = None, nx: bool = Literal[False], xx: bool = Literal[False], keepttl: bool = Literal[False], get: bool = Literal[False], exat: @Todo(Support for `typing.TypeAlias`) | None = None, pxat: @Todo(Support for `typing.TypeAlias`) | None = None) -> bool | None)` is possibly unbound
[warning] possibly-unbound-attribute - :110:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].get(name: @Todo(Support for `typing.TypeAlias`)) -> Unknown | None)` is possibly unbound
[warning] possibly-unbound-attribute - :114:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].delete(*names: @Todo(Support for `typing.TypeAlias`)) -> int)` is possibly unbound
[warning] possibly-unbound-attribute - :122:9 - Attribute `assert_called_once` on type `Unknown | (bound method Redis[Unknown].flushall(asynchronous: bool = Literal[False], **kwargs: @Todo(Support for `typing.TypeAlias`)) -> bool)` is possibly unbound
[warning] possibly-unbound-attribute - :126:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].hdel(name: @Todo(Support for `typing.TypeAlias`), *keys: @Todo(Support for `typing.TypeAlias`)) -> int)` is possibly unbound
[warning] possibly-unbound-attribute - :130:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].lpush(name: @Todo(Support for `typing.TypeAlias`), *values: @Todo(Support for `typing.TypeAlias`)) -> int)` is possibly unbound
[warning] possibly-unbound-attribute - :134:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].rpush(name: @Todo(Support for `typing.TypeAlias`), *values: @Todo(Support for `typing.TypeAlias`)) -> int)` is possibly unbound
[warning] possibly-unbound-attribute - :138:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].delete(*names: @Todo(Support for `typing.TypeAlias`)) -> int)` is possibly unbound
[warning] possibly-unbound-attribute - :142:9 - Attribute `assert_called_once_with` on type `Unknown | (Overload[(name: @Todo(Support for `typing.TypeAlias`), key: @Todo(Support for `typing.TypeAlias`), value: @Todo(Support for `typing.TypeAlias`), mapping: Mapping[@Todo(Support for `typing.TypeAlias`), @Todo(Support for `typing.TypeAlias`)] | None = None, items: @Todo(Support for `typing.TypeAlias`) | None = None) -> int, (name: @Todo(Support for `typing.TypeAlias`), key: None, value: None, mapping: Mapping[@Todo(Support for `typing.TypeAlias`), @Todo(Support for `typing.TypeAlias`)], items: @Todo(Support for `typing.TypeAlias`) | None = None) -> int, (name: @Todo(Support for `typing.TypeAlias`), *, mapping: Mapping[@Todo(Support for `typing.TypeAlias`), @Todo(Support for `typing.TypeAlias`)], items: @Todo(Support for `typing.TypeAlias`) | None = None) -> int])` is possibly unbound
[warning] possibly-unbound-attribute - :146:9 - Attribute `assert_called_once_with` on type `Unknown | (Overload[(keys: @Todo(Support for `typing.TypeAlias`) | Iterable[@Todo(Support for `typing.TypeAlias`)], timeout: Literal[0] | None = Literal[0]) -> tuple[Unknown, Unknown], (keys: @Todo(Support for `typing.TypeAlias`) | Iterable[@Todo(Support for `typing.TypeAlias`)], timeout: int | float) -> tuple[Unknown, Unknown] | None])` is possibly unbound
[warning] possibly-unbound-attribute - :150:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].brpoplpush(src, dst, timeout: int | None = Literal[0]) -> Unknown)` is possibly unbound
[warning] possibly-unbound-attribute - :154:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].get(name: @Todo(Support for `typing.TypeAlias`)) -> Unknown | None)` is possibly unbound
[warning] possibly-unbound-attribute - :158:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].lindex(name: @Todo(Support for `typing.TypeAlias`), index: int) -> Unknown | None)` is possibly unbound
[warning] possibly-unbound-attribute - :162:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].set(name: @Todo(Support for `typing.TypeAlias`), value: @Todo(Support for `typing.TypeAlias`), ex: None | int | float | timedelta = None, px: None | int | float | timedelta = None, nx: bool = Literal[False], xx: bool = Literal[False], keepttl: bool = Literal[False], get: bool = Literal[False], exat: @Todo(Support for `typing.TypeAlias`) | None = None, pxat: @Todo(Support for `typing.TypeAlias`) | None = None) -> bool | None)` is possibly unbound
[warning] possibly-unbound-attribute - :166:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].ltrim(name: @Todo(Support for `typing.TypeAlias`), start: int, end: int) -> bool)` is possibly unbound
[warning] possibly-unbound-attribute - :170:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].hget(name: @Todo(Support for `typing.TypeAlias`), key: @Todo(Support for `typing.TypeAlias`)) -> Unknown | None)` is possibly unbound
[warning] possibly-unbound-attribute - :174:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].sadd(name: @Todo(Support for `typing.TypeAlias`), *values: @Todo(Support for `typing.TypeAlias`)) -> int)` is possibly unbound
[warning] possibly-unbound-attribute - :178:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].sismember(name: @Todo(Support for `typing.TypeAlias`), value: @Todo(Support for `typing.TypeAlias`)) -> bool)` is possibly unbound
[warning] possibly-unbound-attribute - :182:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].smembers(name: @Todo(Support for `typing.TypeAlias`)) -> set[Unknown])` is possibly unbound
[warning] possibly-unbound-attribute - :186:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].srem(name: @Todo(Support for `typing.TypeAlias`), *values: @Todo(Support for `typing.TypeAlias`)) -> int)` is possibly unbound
[warning] possibly-unbound-attribute - :190:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].lrange(name: @Todo(Support for `typing.TypeAlias`), start: int, end: int) -> list[Unknown])` is possibly unbound
[warning] possibly-unbound-attribute - :194:9 - Attribute `pipelineassert_called_once_with` on type `Unknown | Redis[Unknown]` is possibly unbound
[warning] possibly-unbound-attribute - :198:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].llen(name: @Todo(Support for `typing.TypeAlias`)) -> int)` is possibly unbound
[warning] possibly-unbound-attribute - :202:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].rpoplpush(src, dst) -> Unknown)` is possibly unbound
[warning] possibly-unbound-attribute - :206:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].lpop(name, count: int | None = None) -> Unknown)` is possibly unbound
[warning] possibly-unbound-attribute - :210:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].hgetall(name: @Todo(Support for `typing.TypeAlias`)) -> dict[Unknown, Unknown])` is possibly unbound
[warning] possibly-unbound-attribute - :214:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].hexists(name: @Todo(Support for `typing.TypeAlias`), key: @Todo(Support for `typing.TypeAlias`)) -> bool)` is possibly unbound
[warning] possibly-unbound-attribute - :218:9 - Attribute `assert_called_once_with` on type `Unknown | (bound method Redis[Unknown].zadd(name: @Todo(Support for `typing.TypeAlias`), mapping: Mapping[@Todo(Support for `typing.TypeAlias`), @Todo(Support for `typing.TypeAlias`)], nx: bool = Literal[False], xx: bool = Literal[False], ch: bool = Literal[False], incr: bool = Literal[False], gt: @Todo(Support for `typing.TypeAlias`) | None = Literal[False], lt: @Todo(Support for `typing.TypeAlias`) | None = Literal[False]) -> int)` is possibly unbound

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

src/hydra_zen/structured_configs/_implementations.py

[error] invalid-return-type - :1075:16 - Return type does not match returned value: expected `_T@_mutable_value`, found `dataclasses.Field[Unknown]`
[warning] unused-ignore-comment - :1074:60 - Unused blanket `type: ignore` directive

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

src/itsdangerous/serializer.py

[error] invalid-argument-type - :219:26 - Argument to class `_PDataSerializer` is incorrect: Expected `str | bytes`, found `_TSerialized@Serializer`

src/itsdangerous/timed.py

[error] invalid-argument-type - :170:23 - Argument to class `Serializer` is incorrect: Expected `str | bytes`, found `_TSerialized@TimedSerializer`

kopf (https://github.com/nolar/kopf)

kopf/_core/engines/daemons.py

[error] invalid-assignment - :51:5 - Object of type `dataclasses.Field[int | float]` is not assignable to `int | float`

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

mitmproxy/flow.py

[error] invalid-assignment - :32:5 - Object of type `dataclasses.Field[int | float]` is not assignable to `int | float`

mitmproxy/connection.py

[error] invalid-assignment - :193:5 - Object of type `dataclasses.Field[int | float]` is not assignable to `int | float`

mitmproxy/contentviews/__init__.py

[error] invalid-argument-type - :67:26 - Argument to function `get_data` is incorrect: Expected `Message | TCPMessage | UDPMessage | WebSocketMessage | DNSMessage`, found `ContentviewMessage`
[error] invalid-argument-type - :77:30 - Argument to function `make_metadata` is incorrect: Expected `Message | TCPMessage | UDPMessage | WebSocketMessage | DNSMessage`, found `ContentviewMessage`
[error] invalid-argument-type - :125:30 - Argument to function `make_metadata` is incorrect: Expected `Message | TCPMessage | UDPMessage | WebSocketMessage | DNSMessage`, found `ContentviewMessage`

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

optuna/importance/_fanova/_tree.py

[error] invalid-return-type - :78:16 - Return type does not match returned value: expected `int | float`, found `floating[Any]`
[error] invalid-return-type - :142:16 - Return type does not match returned value: expected `tuple[int | float, int | float]`, found `tuple[floating[Any], Unknown]`

optuna/visualization/_rank.py

[error] non-subscriptable - :299:32 - Cannot subscript object of type `floating[Any]` with no `__getitem__` method
[error] invalid-argument-type - :299:67 - Argument to function `len` is incorrect: Expected `Sized`, found `floating[Any]`

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

src/prefect/server/orchestration/rules.py

[error] invalid-argument-type - :535:44 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@BaseOrchestrationRule`
[error] invalid-argument-type - :628:18 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@__init__`
[error] invalid-argument-type - :637:35 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@__aenter__`
[error] invalid-argument-type - :700:18 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@before_transition`
[error] invalid-argument-type - :731:18 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@after_transition`
[error] invalid-argument-type - :751:18 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@cleanup`
[error] invalid-argument-type - :970:44 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@BaseUniversalTransform`
[error] invalid-argument-type - :1003:18 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@__init__`
[error] invalid-argument-type - :1011:35 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@__aenter__`
[error] invalid-argument-type - :1044:48 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@before_transition`
[error] invalid-argument-type - :1055:47 - Argument to class `OrchestrationContext` is incorrect: Expected `FlowRunPolicy | TaskRunPolicy`, found `RP@after_transition`

scikit-learn (https://github.com/scikit-learn/scikit-learn)

sklearn/calibration.py

[error] non-subscriptable - :1297:30 - Cannot subscript object of type `floating[Any]` with no `__getitem__` method
[error] invalid-argument-type - :1299:66 - Argument to function `len` is incorrect: Expected `Sized`, found `floating[Any] | @Todo(unknown type subscript)`
[error] invalid-argument-type - :1300:66 - Argument to function `len` is incorrect: Expected `Sized`, found `floating[Any] | @Todo(unknown type subscript)`
[error] invalid-argument-type - :1301:51 - Argument to function `len` is incorrect: Expected `Sized`, found `floating[Any] | @Todo(unknown type subscript)`

sklearn/gaussian_process/_gpc.py

[error] index-out-of-bounds - :472:24 - Index 0 is out of bounds for tuple `tuple[()]` with length 0

sklearn/metrics/tests/test_regression.py

[error] not-iterable - :567:17 - Object of type `floating[Any]` is not iterable

sklearn/preprocessing/tests/test_data.py

[error] non-subscriptable - :1602:11 - Cannot subscript object of type `floating[Any]` with no `__getitem__` method
[error] non-subscriptable - :1602:18 - Cannot subscript object of type `floating[Any]` with no `__getitem__` method

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

scipy/stats/_multicomp.py

[error] invalid-return-type - :428:12 - Return type does not match returned value: expected `tuple[ndarray[@Todo(Support for `typing.TypeAlias`), Unknown], int | float, ndarray[@Todo(Support for `typing.TypeAlias`), Unknown], ndarray[@Todo(Support for `typing.TypeAlias`), Unknown]]`, found `tuple[Any, Any, floating[Any], @Todo(unknown type subscript)]`

scipy/integrate/_quadrature.py

[error] non-subscriptable - :498:33 - Cannot subscript object of type `float64` with no `__getitem__` method
[error] non-subscriptable - :499:33 - Cannot subscript object of type `float64` with no `__getitem__` method

scipy/signal/tests/test_signaltools.py

[error] non-subscriptable - :3170:22 - Cannot subscript object of type `floating[Any]` with no `__getitem__` method

scipy/sparse/linalg/_isolve/iterative.py

[error] non-subscriptable - :564:16 - Cannot subscript object of type `float64` with no `__getitem__` method

scipy/stats/_continuous_distns.py

[error] not-iterable - :1507:25 - Object of type `floating[Any]` is not iterable
[error] not-iterable - :6011:25 - Object of type `floating[Any]` is not iterable
[error] not-iterable - :9657:25 - Object of type `floating[Any]` is not iterable
[error] not-iterable - :12464:29 - Object of type `floating[Any]` is not iterable

scipy/stats/_qmc.py

[error] invalid-return-type - :458:16 - Return type does not match returned value: expected `int | float`, found `floating[Any]`

scipy/stats/tests/test_quantile.py

[warning] possibly-unbound-implicit-call - :33:5 - Method `__setitem__` of type `Unknown | floating[Any]` is possibly unbound

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

strawberry/schema/schema_converter.py

[error] invalid-argument-type - :120:22 - Argument to class `FieldConverterProtocol` is incorrect: Expected `GraphQLField | GraphQLInputField`, found `FieldType@_get_thunk_mapping`