Ecosystem report

Old: main (merge base) ed64c4d9 New: 22155/merge f9690f58
Lint Rule Removed Added Changed
Total 1 6 39
invalid-argument-type 0 2 10
unresolved-attribute 0 4 6
invalid-await 0 0 7
possibly-missing-attribute 0 0 6
invalid-return-type 0 0 5
invalid-assignment 0 0 3
invalid-context-manager 0 0 2
unused-ignore-comment 1 0 0
Project Removed Added Changed
Total 1 6 39
prefect 0 6 23
core 0 0 4
static-frame 0 0 4
scikit-learn 0 0 3
scipy 0 0 3
Tanjun 0 0 1
pandas-stubs 1 0 0
tornado 0 0 1

Tanjun (https://github.com/FasterSpeeding/Tanjun)

tanjun/dependencies/data.py

[error] invalid-return-type - :347 -
Old: Return type does not match returned value: expected `_T@cached_inject`, found `_T@cached_inject | Coroutine[Any, Any, _T@cached_inject | Coroutine[Any, Any, _T@cached_inject]]`
New: Return type does not match returned value: expected `_T@cached_inject`, found `Coroutine[Any, Any, _T@cached_inject | Coroutine[Any, Any, _T@cached_inject]] | _T@cached_inject`

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

homeassistant/components/energy/data.py

[error] invalid-assignment - :388 -
Old: Invalid assignment to key "device_consumption" with declared type `list[DeviceConsumption]` on TypedDict `EnergyPreferences`: value of type `list[SourceType] | list[DeviceConsumption]`
New: Invalid assignment to key "device_consumption" with declared type `list[DeviceConsumption]` on TypedDict `EnergyPreferences`: value of type `list[GridSourceType | SolarSourceType | BatterySourceType | GasSourceType | WaterSourceType] | list[DeviceConsumption]`
[error] invalid-assignment - :388 -
Old: Invalid assignment to key "device_consumption_water" with declared type `list[DeviceConsumption]` on TypedDict `EnergyPreferences`: value of type `list[SourceType] | list[DeviceConsumption]`
New: Invalid assignment to key "device_consumption_water" with declared type `list[DeviceConsumption]` on TypedDict `EnergyPreferences`: value of type `list[GridSourceType | SolarSourceType | BatterySourceType | GasSourceType | WaterSourceType] | list[DeviceConsumption]`
[error] invalid-assignment - :388 -
Old: Invalid assignment to key "energy_sources" with declared type `list[SourceType]` on TypedDict `EnergyPreferences`: value of type `list[SourceType] | list[DeviceConsumption]`
New: Invalid assignment to key "energy_sources" with declared type `list[SourceType]` on TypedDict `EnergyPreferences`: value of type `list[GridSourceType | SolarSourceType | BatterySourceType | GasSourceType | WaterSourceType] | list[DeviceConsumption]`

homeassistant/helpers/entity_registry.py

[error] invalid-argument-type - :1064 -
Old: Argument is incorrect: Expected `ReadOnlyEntityOptionsType`, found `ReadOnlyDict[str, ReadOnlyDict[str, Any]] | @Todo | None`
New: Argument is incorrect: Expected `ReadOnlyDict[str, ReadOnlyDict[str, Any]]`, found `ReadOnlyDict[str, ReadOnlyDict[str, Any]] | @Todo | None`

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

pandas-stubs/_typing.pyi

[warning] unused-ignore-comment - :1232:16 - Unused blanket `type: ignore` directive

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

src/integrations/prefect-aws/prefect_aws/experimental/bundles/execute.py

[warning] possibly-missing-attribute - :52 -
Old: Attribute `get_s3_client` may be missing on object of type `Self@aload | Coroutine[Any, Any, Self@aload] | AwsCredentials`
New: Attribute `get_s3_client` may be missing on object of type `None | Coroutine[Any, Any, None] | AwsCredentials`

src/integrations/prefect-aws/prefect_aws/experimental/bundles/upload.py

[warning] possibly-missing-attribute - :68 -
Old: Attribute `get_s3_client` may be missing on object of type `Self@aload | Coroutine[Any, Any, Self@aload] | AwsCredentials`
New: Attribute `get_s3_client` may be missing on object of type `None | Coroutine[Any, Any, None] | AwsCredentials`

src/integrations/prefect-aws/tests/test_s3.py

[error] unresolved-attribute - :1141 -
Old: Object of type `Self@aload | Coroutine[Any, Any, Self@aload]` has no attribute `credentials`
New: Object of type `None | Coroutine[Any, Any, None]` has no attribute `credentials`

src/integrations/prefect-azure/prefect_azure/experimental/bundles/execute.py

[error] invalid-await - :28 -
Old: `Self@aload | Coroutine[Any, Any, Self@aload]` is not awaitable
New: `None | Coroutine[Any, Any, None]` is not awaitable

src/integrations/prefect-azure/prefect_azure/experimental/bundles/upload.py

[error] invalid-await - :38 -
Old: `Self@aload | Coroutine[Any, Any, Self@aload]` is not awaitable
New: `None | Coroutine[Any, Any, None]` is not awaitable

src/integrations/prefect-dbt/tests/cli/test_credentials.py

[error] invalid-await - :75 -
Old: `Self@aload | Coroutine[Any, Any, Self@aload]` is not awaitable
New: `None | Coroutine[Any, Any, None]` is not awaitable

src/integrations/prefect-email/tests/test_credentials.py

[error] unresolved-attribute - :91 -
Old: Object of type `Self@aload | Coroutine[Any, Any, Self@aload]` has no attribute `smtp_type`
New: Object of type `None | Coroutine[Any, Any, None]` has no attribute `smtp_type`
[error] unresolved-attribute - :92 -
Old: Object of type `Self@aload | Coroutine[Any, Any, Self@aload]` has no attribute `get_server`
New: Object of type `None | Coroutine[Any, Any, None]` has no attribute `get_server`
[error] unresolved-attribute - :108 -
Old: Object of type `Self@aload | Coroutine[Any, Any, Self@aload]` has no attribute `smtp_type`
New: Object of type `None | Coroutine[Any, Any, None]` has no attribute `smtp_type`
[error] unresolved-attribute - :109 -
Old: Object of type `Self@aload | Coroutine[Any, Any, Self@aload]` has no attribute `verify`
New: Object of type `None | Coroutine[Any, Any, None]` has no attribute `verify`
[error] unresolved-attribute - :110 -
Old: Object of type `Self@aload | Coroutine[Any, Any, Self@aload]` has no attribute `get_server`
New: Object of type `None | Coroutine[Any, Any, None]` has no attribute `get_server`

src/integrations/prefect-sqlalchemy/tests/test_database.py

[error] invalid-context-manager - :447 -
Old: Object of type `Self@aload | Coroutine[Any, Any, Self@aload]` cannot be used with `with` because it does not implement `__enter__` and `__exit__`
New: Object of type `None | Coroutine[Any, Any, None]` cannot be used with `with` because it does not implement `__enter__` and `__exit__`
[error] invalid-context-manager - :466 -
Old: Object of type `Self@aload | Coroutine[Any, Any, Self@aload]` cannot be used with `with` because it does not implement `__enter__` and `__exit__`
New: Object of type `None | Coroutine[Any, Any, None]` cannot be used with `with` because it does not implement `__enter__` and `__exit__`

src/prefect/cli/deployment.py

[error] unresolved-attribute - :292:49 - Object of type `None` has no attribute `model_dump`

src/prefect/deployments/steps/pull.py

[error] invalid-argument-type - :271 -
Old: Argument to bound method `__init__` is incorrect: Expected `ReadableDeploymentStorage | WritableDeploymentStorage`, found `Self@aload`
New: Argument to bound method `__init__` is incorrect: Expected `ReadableDeploymentStorage | WritableDeploymentStorage`, found `None`

src/prefect/flow_engine.py

[error] unresolved-attribute - :696:32 - Object of type `None` has no attribute `client`
[error] unresolved-attribute - :1278:32 - Object of type `None` has no attribute `client`
[error] invalid-argument-type - :318 -
Old: Argument to bound method `handle_exception` is incorrect: Expected `ResultStore | None`, found `Self@update_for_flow | Coroutine[Any, Any, Self@update_for_flow]`
New: Argument to bound method `handle_exception` is incorrect: Expected `ResultStore | None`, found `ResultStore | Coroutine[Any, Any, ResultStore]`
[error] invalid-argument-type - :622 -
Old: Argument is incorrect: Expected `ResultStore`, found `Self@update_for_flow | Coroutine[Any, Any, Self@update_for_flow]`
New: Argument is incorrect: Expected `ResultStore`, found `ResultStore | Coroutine[Any, Any, ResultStore]`
[error] invalid-argument-type - :905 -
Old: Argument to bound method `handle_exception` is incorrect: Expected `ResultStore | None`, found `Self@update_for_flow | Coroutine[Any, Any, Self@update_for_flow]`
New: Argument to bound method `handle_exception` is incorrect: Expected `ResultStore | None`, found `ResultStore | Coroutine[Any, Any, ResultStore]`
[error] invalid-argument-type - :1206 -
Old: Argument is incorrect: Expected `ResultStore`, found `Self@update_for_flow | Coroutine[Any, Any, Self@update_for_flow]`
New: Argument is incorrect: Expected `ResultStore`, found `ResultStore | Coroutine[Any, Any, ResultStore]`

src/prefect/task_engine.py

[error] unresolved-attribute - :821:32 - Object of type `None` has no attribute `client`
[error] invalid-argument-type - :776 -
Old: Argument is incorrect: Expected `ResultStore`, found `Self@update_for_task | Coroutine[Any, Any, Self@update_for_task]`
New: Argument is incorrect: Expected `ResultStore`, found `ResultStore | Coroutine[Any, Any, ResultStore]`
[error] invalid-await - :1382 -
Old: `Self@update_for_task | Coroutine[Any, Any, Self@update_for_task]` is not awaitable
New: `ResultStore | Coroutine[Any, Any, ResultStore]` is not awaitable

src/prefect/task_worker.py

[error] invalid-await - :318 -
Old: `Self@update_for_task | Coroutine[Any, Any, Self@update_for_task]` is not awaitable
New: `ResultStore | Coroutine[Any, Any, ResultStore]` is not awaitable

src/prefect/tasks.py

[error] invalid-await - :920 -
Old: `Self@update_for_task | Coroutine[Any, Any, Self@update_for_task]` is not awaitable
New: `ResultStore | Coroutine[Any, Any, ResultStore]` is not awaitable
[error] invalid-await - :1025 -
Old: `Self@update_for_task | Coroutine[Any, Any, Self@update_for_task]` is not awaitable
New: `ResultStore | Coroutine[Any, Any, ResultStore]` is not awaitable

src/prefect/testing/utilities.py

[error] invalid-argument-type - :280:17 - Argument to function `assert_blocks_equal` is incorrect: Expected `Block`, found `ReadableFileSystem | None`
[error] invalid-argument-type - :291:17 - Argument to function `assert_blocks_equal` is incorrect: Expected `Block`, found `ReadableFileSystem | None`

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

sklearn/externals/array_api_extra/_lib/_at.py

[warning] possibly-missing-attribute - :300 -
Old: Attribute `dtype` may be missing on object of type `int | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...] | slice[Any, Any, Any] | EllipsisType`
New: Attribute `dtype` may be missing on object of type `int | slice[Any, Any, Any] | EllipsisType | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...]`
[warning] possibly-missing-attribute - :301 -
Old: Attribute `shape` may be missing on object of type `int | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...] | slice[Any, Any, Any] | EllipsisType`
New: Attribute `shape` may be missing on object of type `int | slice[Any, Any, Any] | EllipsisType | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...]`
[error] invalid-argument-type - :308 -
Old: Argument to function `apply_where` is incorrect: Expected `Array`, found `int | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...] | slice[Any, Any, Any] | EllipsisType`
New: Argument to function `apply_where` is incorrect: Expected `Array`, found `int | slice[Any, Any, Any] | EllipsisType | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...]`

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

scipy/_lib/array_api_extra/src/array_api_extra/_lib/_at.py

[warning] possibly-missing-attribute - :300 -
Old: Attribute `dtype` may be missing on object of type `int | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...] | slice[Any, Any, Any] | EllipsisType`
New: Attribute `dtype` may be missing on object of type `int | slice[Any, Any, Any] | EllipsisType | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...]`
[warning] possibly-missing-attribute - :301 -
Old: Attribute `shape` may be missing on object of type `int | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...] | slice[Any, Any, Any] | EllipsisType`
New: Attribute `shape` may be missing on object of type `int | slice[Any, Any, Any] | EllipsisType | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...]`
[error] invalid-argument-type - :308 -
Old: Argument to function `apply_where` is incorrect: Expected `Array`, found `int | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...] | slice[Any, Any, Any] | EllipsisType`
New: Argument to function `apply_where` is incorrect: Expected `Array`, found `int | slice[Any, Any, Any] | EllipsisType | Array | tuple[int | slice[Any, Any, Any] | EllipsisType | Array, ...]`

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

static_frame/core/bus.py

[error] invalid-return-type - :671 -
Old: Return type does not match returned value: expected `InterGetItemLocReduces[Bus[Any], object_]`, found `InterGetItemLocReduces[Top[Index[Any]] | TypeBlocks | Top[Bus[Any]] | ... omitted 6 union elements, object_]`
New: Return type does not match returned value: expected `InterGetItemLocReduces[Bus[Any], object_]`, found `InterGetItemLocReduces[Top[Bus[Any]] | TypeBlocks | Batch | ... omitted 6 union elements, object_]`
[error] invalid-return-type - :675 -
Old: Return type does not match returned value: expected `InterGetItemILocReduces[Bus[Any], object_]`, found `InterGetItemILocReduces[Top[Index[Any]] | TypeBlocks | Top[Bus[Any]] | ... omitted 6 union elements, generic[object]]`
New: Return type does not match returned value: expected `InterGetItemILocReduces[Bus[Any], object_]`, found `InterGetItemILocReduces[Top[Bus[Any]] | TypeBlocks | Batch | ... omitted 6 union elements, generic[object]]`

static_frame/core/index.py

[error] invalid-return-type - :580 -
Old: Return type does not match returned value: expected `InterGetItemLocReduces[TVContainer_co@loc, TVDtype@Index]`, found `InterGetItemLocReduces[Any | Bottom[Series[Any, Any]], TVDtype@Index]`
New: Return type does not match returned value: expected `InterGetItemLocReduces[TVContainer_co@loc, TVDtype@Index]`, found `InterGetItemLocReduces[Top[Series[Any, Any]] | Any, TVDtype@Index]`

static_frame/core/node_selector.py

[error] invalid-return-type - :526 -
Old: Return type does not match returned value: expected `InterGetItemLocReduces[TVContainer_co@InterfaceSelectQuartet, Any]`, found `InterGetItemLocReduces[Unknown | Bottom[Series[Any, Any]], Any]`
New: Return type does not match returned value: expected `InterGetItemLocReduces[TVContainer_co@InterfaceSelectQuartet, Any]`, found `InterGetItemLocReduces[Top[Series[Any, Any]] | Unknown, Any]`

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

tornado/gen.py

[error] invalid-argument-type - :255 -
Old: Argument to bound method `__init__` is incorrect: Expected `None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown]`, found `_T@next | _T@next | _VT@next`
New: Argument to bound method `__init__` is incorrect: Expected `None | Awaitable[Unknown] | list[Awaitable[Unknown]] | dict[Any, Awaitable[Unknown]] | Future[Unknown]`, found `_T@next | _VT@next | _T@next`