Ecosystem report

Old: main (merge base) 17761270 New: 28072/merge b5a7cd27
Lint Rule Removed Added Changed
Total 3 39 27
invalid-argument-type 0 18 12
invalid-return-type 0 8 6
invalid-assignment 0 4 9
invalid-yield 0 3 0
unsound-return-statement 1 2 0
no-matching-overload 1 1 0
type-assertion-failure 0 2 0
redundant-cast 1 0 0
unresolved-attribute 0 1 0
Project Removed Added Changed
Total 3 39 27
optuna strict 0 0 23
core strict 0 15 4
prefect strict 2 9 0
discord.py strict 0 3 0
anyio strict 0 2 0
meson strict 0 2 0
pandas-stubs strict 0 2 0
scrapy strict 0 2 0
archinstall non-strict 1 0 0
cki-lib strict 0 1 0
mkdocs strict 0 1 0
streamlit strict 0 1 0
tornado strict 0 1 0

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

src/anyio/itertools.py

[error] invalid-assignment - Object of type `Top[_TeeState[Unknown]]` is not assignable to attribute `_state` of type `_TeeState[T@_TeeAsyncIterator]`
[error] invalid-assignment - Object of type `Top[_TeeLink[Unknown]]` is not assignable to attribute `_link` of type `_TeeLink[T@_TeeAsyncIterator]`

archinstall non-strict (https://github.com/archlinux/archinstall)

archinstall/tui/result.py

[warning] redundant-cast - Value is already of type `list[ValueT@Result]`

cki-lib strict (https://gitlab.com/cki-project/cki-lib)

cki_lib/misc.py

[error] invalid-yield - Yield type `object` does not match annotated yield type `T@flattened`

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

homeassistant/components/datadog/__init__.py

[error] invalid-argument-type - Argument to bound method `EventBus.async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`

homeassistant/components/influxdb/__init__.py

[error] invalid-argument-type - Argument to bound method `EventBus.async_listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`

homeassistant/components/statsd/__init__.py

[error] invalid-argument-type - Argument to bound method `EventBus.listen` is incorrect: Expected `EventType[Mapping[str, Any]] | str`, found `EventType[EventStateChangedData]`

homeassistant/core.py

[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[EventStateReportedData | dict[str, str | datetime | State | None]] | str`, found `EventType[EventStateReportedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[dict[str, str | datetime | State | None]] | str`, found `EventType[EventStateReportedData]`

homeassistant/helpers/device_registry.py

[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventDeviceRegistryUpdatedData_Update] | str`, found `EventType[EventDeviceRegistryUpdatedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Update] | str`, found `EventType[EventDeviceRegistryUpdatedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventDeviceRegistryUpdatedData_Create | _EventDeviceRegistryUpdatedData_Update] | str`, found `EventType[EventDeviceRegistryUpdatedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventDeviceRegistryUpdatedData_Remove] | str`, found `EventType[EventDeviceRegistryUpdatedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventDeviceRegistryUpdatedData_Remove] | str`, found `EventType[EventDeviceRegistryUpdatedData]`

homeassistant/helpers/entity_registry.py

[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventEntityRegistryUpdatedData_CreateRemove] | str`, found `EventType[EventEntityRegistryUpdatedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventEntityRegistryUpdatedData_CreateRemove] | str`, found `EventType[EventEntityRegistryUpdatedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventEntityRegistryUpdatedData_Update] | str`, found `EventType[EventEntityRegistryUpdatedData]`

homeassistant/helpers/floor_registry.py

[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update] | str`, found `EventType[EventFloorRegistryUpdatedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update] | str`, found `EventType[EventFloorRegistryUpdatedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventFloorRegistryUpdatedData_Create_Remove_Update] | str`, found `EventType[EventFloorRegistryUpdatedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire_internal` is incorrect: Expected `EventType[_EventFloorRegistryUpdatedData_Reorder] | str`, found `EventType[EventFloorRegistryUpdatedData]`

homeassistant/scripts/benchmark/__init__.py

[error] invalid-argument-type - Argument to bound method `EventBus.async_fire` is incorrect: Expected `EventType[EventStateChangedData | dict[str, str | State]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire` is incorrect: Expected `EventType[dict[str, str | State]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire` is incorrect: Expected `EventType[EventStateChangedData | dict[str, str | State]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire` is incorrect: Expected `EventType[dict[str, str | State]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire` is incorrect: Expected `EventType[EventStateChangedData | dict[str, str | State]] | str`, found `EventType[EventStateChangedData]`
[error] invalid-argument-type - Argument to bound method `EventBus.async_fire` is incorrect: Expected `EventType[dict[str, str | State]] | str`, found `EventType[EventStateChangedData]`

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

discord/ext/commands/cog.py

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

discord/ext/commands/core.py

[error] invalid-yield - Yield type `Top[Command[Unknown, (...), Any]]` does not match annotated yield type `Command[CogT@GroupMixin, (...), Any]`
[error] invalid-return-type - Return type does not match returned value: expected `Command[CogT@GroupMixin, (...), Any] | None`, found `Top[Command[Unknown, (...), Any]] | Unknown`

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

mesonbuild/modules/hotdoc.py

[error] invalid-return-type - Return type does not match returned value: expected `list[_T@ensure_list]`, found `(_T@ensure_list & Top[list[Unknown]]) | list[_T@ensure_list]`

mesonbuild/utils/universal.py

[error] invalid-return-type - Return type does not match returned value: expected `list[_T@typeslistify]`, found `(_T@typeslistify & Top[list[Unknown]]) | Top[list[Unknown & _T@typeslistify]]`

mkdocs strict (https://github.com/mkdocs/mkdocs)

mkdocs/config/config_options.py

[error] invalid-return-type - Return type does not match returned value: expected `list[T@ListOfItems]`, found `Top[list[Unknown]] & ~AlwaysTruthy`

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

optuna/storages/_rdb/alembic/versions/v1.3.0.a.py

[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Column[str]`
[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Column[Unknown]`

optuna/storages/_rdb/alembic/versions/v3.0.0.a.py

[error] invalid-assignment - Object of type `str` is not assignable to attribute `distribution_json` of type `Column[str]`
[error] invalid-assignment - Object of type `str` is not assignable to attribute `distribution_json` of type `Column[Unknown]`
[error] invalid-argument-type - Argument to function `migrate_new_distribution` is incorrect: Expected `str`, found `Column[str]`
[error] invalid-argument-type - Argument to function `migrate_new_distribution` is incorrect: Expected `str`, found `Column[Unknown]`
[error] invalid-assignment - Object of type `str` is not assignable to attribute `distribution_json` of type `Column[str]`
[error] invalid-assignment - Object of type `str` is not assignable to attribute `distribution_json` of type `Column[Unknown]`
[error] invalid-argument-type - Argument to function `restore_old_distribution` is incorrect: Expected `str`, found `Column[str]`
[error] invalid-argument-type - Argument to function `restore_old_distribution` is incorrect: Expected `str`, found `Column[Unknown]`

optuna/storages/_rdb/alembic/versions/v3.0.0.c.py

[error] invalid-assignment - Object of type `Column[float]` is not assignable to `float`
[error] invalid-assignment - Object of type `Column[Unknown]` is not assignable to `float`

optuna/storages/_rdb/alembic/versions/v3.0.0.d.py

[error] invalid-assignment - Object of type `Column[float]` is not assignable to `float`
[error] invalid-assignment - Object of type `Column[Unknown]` is not assignable to `float`

optuna/storages/_rdb/storage.py

[error] invalid-assignment - Invalid assignment to data descriptor attribute `value_json` on type `StudyUserAttributeModel`: Argument type `MappedColumn[Any] | Column[str]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `value_json` on type `StudyUserAttributeModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `value_json` on type `StudySystemAttributeModel`: Argument type `MappedColumn[Any] | Column[str]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `value_json` on type `StudySystemAttributeModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`
[error] invalid-return-type - Return type does not match returned value: expected `str`, found `Any | Column[str]`
[error] invalid-return-type - Return type does not match returned value: expected `str`, found `Any | Column[Unknown]`
[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Any | Column[str]`
[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Any | Column[Unknown]`
[error] invalid-return-type - Return type does not match returned value: expected `dict[str, Any]`, found `dict[Any | Column[str], Any]`
[error] invalid-return-type - Return type does not match returned value: expected `dict[str, Any]`, found `dict[Any | Column[Unknown], Any]`
[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Any | Column[str]`
[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Any | Column[Unknown]`
[error] invalid-return-type - Return type does not match returned value: expected `dict[str, Any]`, found `dict[Any | Column[str], Any]`
[error] invalid-return-type - Return type does not match returned value: expected `dict[str, Any]`, found `dict[Any | Column[Unknown], Any]`
[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Any | Column[str]`
[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Any | Column[Unknown]`
[error] invalid-return-type - Return type does not match returned value: expected `dict[str, Any]`, found `dict[Any | Column[str], Any]`
[error] invalid-return-type - Return type does not match returned value: expected `dict[str, Any]`, found `dict[Any | Column[Unknown], Any]`
[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Any | Column[str]`
[error] invalid-argument-type - Argument to function `loads` is incorrect: Expected `str | bytes | bytearray`, found `Any | Column[Unknown]`
[error] invalid-return-type - Return type does not match returned value: expected `dict[str, Any]`, found `dict[Any | Column[str], Any]`
[error] invalid-return-type - Return type does not match returned value: expected `dict[str, Any]`, found `dict[Any | Column[Unknown], Any]`
[error] invalid-argument-type - Argument to function `json_to_distribution` is incorrect: Expected `str`, found `Any | Column[str]`
[error] invalid-argument-type - Argument to function `json_to_distribution` is incorrect: Expected `str`, found `Any | Column[Unknown]`
[error] invalid-return-type - Return type does not match returned value: expected `float`, found `Any | Column[float]`
[error] invalid-return-type - Return type does not match returned value: expected `float`, found `Any | Column[Unknown]`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `value` on type `TrialValueModel`: Argument type `MappedColumn[Any] | Column[float]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `value` on type `TrialValueModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `intermediate_value` on type `TrialIntermediateValueModel`: Argument type `MappedColumn[Any] | Column[float]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `intermediate_value` on type `TrialIntermediateValueModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `library_version` on type `VersionInfoModel`: Argument type `MappedColumn[Any] | Column[str]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`
[error] invalid-assignment - Invalid assignment to data descriptor attribute `library_version` on type `VersionInfoModel`: Argument type `MappedColumn[Any] | Column[Unknown]` does not satisfy upper bound `Mapped[Any]` of type variable `Self`

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

tests/test_pandas.py

[error] type-assertion-failure - Type `ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]` does not match asserted type `ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]`
[error] type-assertion-failure - Type `ndarray[tuple[int], dtype[numpy.bool[builtins.bool]]]` does not match asserted type `ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]`

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

src/integrations/prefect-redis/tests/test_tasks.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `str`

src/prefect/_internal/states.py

[error] invalid-return-type - Return type does not match returned value: expected `State[R@return_value_to_state_sync]`, found `R@return_value_to_state_sync & Top[State[Unknown]]`

src/prefect/futures.py

[error] invalid-assignment - Object of type `R@PrefectConcurrentFuture & Top[State[Unknown]]` is not assignable to attribute `_final_state` of type `State[R@PrefectConcurrentFuture] | None`
[error] invalid-assignment - Object of type `R@PrefectConcurrentFuture & Top[State[Unknown]]` is not assignable to attribute `_final_state` of type `State[R@PrefectConcurrentFuture] | None`
[error] no-matching-overload - No overload of bound method `State.result` matches arguments
[error] unresolved-attribute - Attribute `result` is not defined on `None` in union `State[R@PrefectConcurrentFuture] | None`

src/prefect/input/run_input.py

[error] invalid-return-type - Return type does not match returned value: expected `GetAutomaticInputHandler[T@receive_input] | GetInputHandler[R@receive_input]`, found `Top[GetAutomaticInputHandler[Unknown]]`

src/prefect/server/database/query_components.py

[warning] unsound-return-statement - Unsound return statement: `Select[tuple[Unknown, datetime]]` is not a subtype of `Select[tuple[datetime, datetime]]`

src/prefect/states.py

[error] invalid-return-type - Return type does not match returned value: expected `State[R@return_value_to_state]`, found `R@return_value_to_state & Top[State[Unknown]]`

src/prefect/task_engine.py

[error] invalid-argument-type - Argument to bound method `SyncTaskRunEngine.handle_retry` is incorrect: Expected `Exception | State[R@SyncTaskRunEngine]`, found `R@SyncTaskRunEngine & Top[State[Unknown]]`
[error] invalid-argument-type - Argument to bound method `AsyncTaskRunEngine.handle_retry` is incorrect: Expected `Exception | State[R@AsyncTaskRunEngine]`, found `R@AsyncTaskRunEngine & Top[State[Unknown]]`

scrapy strict (https://github.com/scrapy/scrapy)

scrapy/utils/defer.py

[error] invalid-return-type - Return type does not match returned value: expected `Deferred[_T@deferred_from_coro] | _T2@deferred_from_coro`, found `(Awaitable[_T@deferred_from_coro] & Top[Deferred[Unknown]]) | (_T2@deferred_from_coro & Top[Deferred[Unknown]])`
[error] invalid-argument-type - Argument to function `maybe_deferred_to_future` is incorrect: Expected `Deferred[_T@ensure_awaitable]`, found `(_T@ensure_awaitable & Top[Deferred[Unknown]]) | (Awaitable[_T@ensure_awaitable] & Top[Deferred[Unknown]])`

streamlit strict (https://github.com/streamlit/streamlit)

lib/streamlit/runtime/caching/cache_data_api.py

[warning] unsound-return-statement - Unsound return statement: `Any & Top[CachedResult[Unknown]]` is not a subtype of `CachedResult[R@DataCache]`

tornado strict (https://github.com/tornadoweb/tornado)

tornado/concurrent.py

[error] no-matching-overload - No overload of function `future_add_done_callback` matches arguments