Ecosystem report

Old: main (merge base) 3edbac5c New: 25112/merge fc1ee896
Lint Rule Removed Added Changed
Total 1 0 21
invalid-argument-type 0 0 9
unresolved-attribute 0 0 5
invalid-type-guard-definition 0 0 3
invalid-yield 1 0 1
invalid-assignment 0 0 1
invalid-return-type 0 0 1
not-subscriptable 0 0 1
Project Removed Added Changed
Total 1 0 21
pandas 0 0 6
scikit-learn 0 0 5
mypy 0 0 3
discord.py 1 0 1
pytest 0 0 2
core 0 0 1
prefect 0 0 1
pyodide 0 0 1
starlette 0 0 1

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

homeassistant/components/tessie/entity.py

[error] invalid-argument-type - Argument to function `handle_command` is incorrect: Expected `Awaitable[dict[str, Any]]`, found `(((...) -> Awaitable[dict[str, Any]]) & Awaitable[object]) | Awaitable[dict[str, Any]]`
[error] invalid-argument-type - Argument to function `handle_command` is incorrect: Expected `Awaitable[dict[str, Any]]`, found `(((...) -> Awaitable[dict[str, Any]]) & <Protocol with members '__await__'>) | Awaitable[dict[str, Any]]`

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

discord/ext/commands/cog.py

[error] invalid-yield - Yield type `Command[Never, (...), Any]` does not match annotated yield type `Command[Self@walk_commands, (...), Any]`
[error] invalid-yield - Yield type `Command[CogT@GroupMixin, (...), Any]` does not match annotated yield type `Command[Self@walk_commands, (...), Any]`

discord/ext/commands/core.py

[error] invalid-yield - Yield type `Command[Never, (...), Any]` does not match annotated yield type `Command[CogT@GroupMixin, (...), Any]`

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

mypy/typeshed/stdlib/dataclasses.pyi

[error] invalid-type-guard-definition - Narrowed type `DataclassInstance | type` is not assignable to the declared parameter type `Never`
[error] invalid-type-guard-definition - Narrowed type `<Protocol with members '__dataclass_fields__'> | type` is not assignable to the declared parameter type `Never`
[error] invalid-type-guard-definition - Narrowed type `DataclassInstance | type` is not assignable to the declared parameter type `Never`
[error] invalid-type-guard-definition - Narrowed type `<Protocol with members '__dataclass_fields__'> | type` is not assignable to the declared parameter type `Never`
[error] invalid-type-guard-definition - Narrowed type `DataclassInstance | type` is not assignable to the declared parameter type `Never`
[error] invalid-type-guard-definition - Narrowed type `<Protocol with members '__dataclass_fields__'> | type` is not assignable to the declared parameter type `Never`

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

pandas/io/formats/style.py

[error] invalid-argument-type - Argument to function `_validate_apply_axis_arg` is incorrect: Expected `NDFrame | Sequence[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`, found `bytes | (date & Iterable[object]) | (timedelta & Iterable[object]) | ... omitted 12 union elements`
[error] invalid-argument-type - Argument to function `_validate_apply_axis_arg` is incorrect: Expected `NDFrame | Sequence[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`, found `bytes | (date & <Protocol with members '__iter__'>) | (timedelta & <Protocol with members '__iter__'>) | ... omitted 12 union elements`
[error] invalid-argument-type - Argument to function `_validate_apply_axis_arg` is incorrect: Expected `NDFrame | Sequence[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`, found `bytes | (date & Iterable[object]) | (timedelta & Iterable[object]) | ... omitted 12 union elements`
[error] invalid-argument-type - Argument to function `_validate_apply_axis_arg` is incorrect: Expected `NDFrame | Sequence[Unknown] | ndarray[tuple[Any, ...], dtype[Any]]`, found `bytes | (date & <Protocol with members '__iter__'>) | (timedelta & <Protocol with members '__iter__'>) | ... omitted 12 union elements`
[error] invalid-argument-type - Argument to function `ge` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~Iterable[object]) | (timedelta & ~Iterable[object]) | (datetime64[date | int | None] & ~Iterable[object]) | ... omitted 10 union elements`
[error] invalid-argument-type - Argument to function `ge` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~<Protocol with members '__iter__'>) | (timedelta & ~<Protocol with members '__iter__'>) | (datetime64[date | int | None] & ~<Protocol with members '__iter__'>) | ... omitted 10 union elements`
[error] invalid-argument-type - Argument to function `gt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~Iterable[object]) | (timedelta & ~Iterable[object]) | (datetime64[date | int | None] & ~Iterable[object]) | ... omitted 10 union elements`
[error] invalid-argument-type - Argument to function `gt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~<Protocol with members '__iter__'>) | (timedelta & ~<Protocol with members '__iter__'>) | (datetime64[date | int | None] & ~<Protocol with members '__iter__'>) | ... omitted 10 union elements`
[error] invalid-argument-type - Argument to function `le` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~Iterable[object]) | (timedelta & ~Iterable[object]) | (datetime64[date | int | None] & ~Iterable[object]) | ... omitted 10 union elements`
[error] invalid-argument-type - Argument to function `le` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~<Protocol with members '__iter__'>) | (timedelta & ~<Protocol with members '__iter__'>) | (datetime64[date | int | None] & ~<Protocol with members '__iter__'>) | ... omitted 10 union elements`
[error] invalid-argument-type - Argument to function `lt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~Iterable[object]) | (timedelta & ~Iterable[object]) | (datetime64[date | int | None] & ~Iterable[object]) | ... omitted 10 union elements`
[error] invalid-argument-type - Argument to function `lt` is incorrect: Expected `_SupportsDunderLE | _SupportsDunderGE | _SupportsDunderGT | _SupportsDunderLT`, found `(date & ~<Protocol with members '__iter__'>) | (timedelta & ~<Protocol with members '__iter__'>) | (datetime64[date | int | None] & ~<Protocol with members '__iter__'>) | ... omitted 10 union elements`

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

src/prefect/_internal/concurrency/calls.py

[error] invalid-return-type - Return type does not match returned value: expected `Awaitable[T@Call] | None`, found `(T@Call & Awaitable[object]) | Awaitable[T@Call]`
[error] invalid-return-type - Return type does not match returned value: expected `Awaitable[T@Call] | None`, found `(T@Call & <Protocol with members '__await__'>) | Awaitable[T@Call]`

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

src/py/pyodide/webloop.py

[error] invalid-argument-type - Argument to bound method `Future.set_result` is incorrect: Expected `S@then`, found `~Awaitable[object]`
[error] invalid-argument-type - Argument to bound method `Future.set_result` is incorrect: Expected `S@then`, found `~<Protocol with members '__await__'>`

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

src/_pytest/assertion/util.py

[error] unresolved-attribute - Object of type `~DataclassInstance & ~type` has no attribute `__attrs_attrs__`
[error] unresolved-attribute - Object of type `~<Protocol with members '__dataclass_fields__'> & ~type` has no attribute `__attrs_attrs__`
[error] unresolved-attribute - Object of type `~DataclassInstance & ~type` has no attribute `_fields`
[error] unresolved-attribute - Object of type `~<Protocol with members '__dataclass_fields__'> & ~type` has no attribute `_fields`

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

sklearn/gaussian_process/_gpr.py

[error] unresolved-attribute - Attribute `shape` is not defined on `int & Iterable[object]`, `float & Iterable[object]` in union `(Unknown & Iterable[object]) | (int & Iterable[object]) | (float & Iterable[object])`
[error] unresolved-attribute - Attribute `shape` is not defined on `int & <Protocol with members '__iter__'>`, `float & <Protocol with members '__iter__'>` in union `(Unknown & <Protocol with members '__iter__'>) | (int & <Protocol with members '__iter__'>) | (float & <Protocol with members '__iter__'>)`
[error] unresolved-attribute - Attribute `shape` is not defined on `int & Iterable[object]`, `float & Iterable[object]` in union `(Unknown & Iterable[object]) | (int & Iterable[object]) | (float & Iterable[object])`
[error] unresolved-attribute - Attribute `shape` is not defined on `int & <Protocol with members '__iter__'>`, `float & <Protocol with members '__iter__'>` in union `(Unknown & <Protocol with members '__iter__'>) | (int & <Protocol with members '__iter__'>) | (float & <Protocol with members '__iter__'>)`
[error] not-subscriptable - Cannot subscript object of type `Iterable[object]` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `<Protocol with members '__iter__'>` with no `__getitem__` method
[error] unresolved-attribute - Attribute `shape` is not defined on `int & Iterable[object]`, `float & Iterable[object]` in union `(Unknown & Iterable[object]) | (int & Iterable[object]) | (float & Iterable[object])`
[error] unresolved-attribute - Attribute `shape` is not defined on `int & <Protocol with members '__iter__'>`, `float & <Protocol with members '__iter__'>` in union `(Unknown & <Protocol with members '__iter__'>) | (int & <Protocol with members '__iter__'>) | (float & <Protocol with members '__iter__'>)`

sklearn/gaussian_process/kernels.py

[error] invalid-argument-type - Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & Iterable[object]) | (int & Iterable[object]) | (float & Iterable[object])`
[error] invalid-argument-type - Argument to function `len` is incorrect: Expected `Sized`, found `(Unknown & <Protocol with members '__iter__'>) | (int & <Protocol with members '__iter__'>) | (float & <Protocol with members '__iter__'>)`

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

starlette/routing.py

[error] invalid-assignment - Object of type `(((Request[State], /) -> Awaitable[Response] | Response) & Top[(...) -> Awaitable[object]]) | partial[(Request[State], /) -> CoroutineType[Any, Any, Awaitable[Response] | Response]]` is not assignable to `(Request[State], /) -> Awaitable[Response]`
[error] invalid-assignment - Object of type `(((Request[State], /) -> Awaitable[Response] | Response) & Top[(...) -> <Protocol with members '__await__'>]) | partial[(Request[State], /) -> CoroutineType[Any, Any, Awaitable[Response] | Response]]` is not assignable to `(Request[State], /) -> Awaitable[Response]`