Ecosystem report

Old: main (merge base) cb31883c New: 22480/merge 9ab81782
Lint Rule Removed Added Changed
Total 2 82 19
invalid-argument-type 0 62 3
possibly-missing-attribute 0 9 3
invalid-await 0 9 0
invalid-return-type 1 2 6
invalid-assignment 0 0 5
unresolved-attribute 0 0 2
unused-ignore-comment 1 0 0
Project Removed Added Changed
Total 2 82 19
prefect 1 80 16
static-frame 0 2 3
core 1 0 0

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

homeassistant/util/variance.py

[error] invalid-return-type - :47:12 - Return type does not match returned value: expected `(**_P@ignore_variance) -> _R@ignore_variance`, found `_Wrapped[_P@ignore_variance, _R@ignore_variance | int | float | datetime, _P@ignore_variance, _R@ignore_variance | int | float | datetime]`

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

src/integrations/prefect-docker/tests/test_containers.py

[error] invalid-argument-type - :27:47 - Argument is incorrect: Expected `bool | None`, found `str | bool | dict[Unknown | str, Unknown | int] | None`
[error] invalid-argument-type - :27:47 - Argument is incorrect: Expected `dict[str, Any]`, found `str | bool | dict[Unknown | str, Unknown | int] | None`
[error] invalid-argument-type - :27:47 - Argument is incorrect: Expected `dict[str, str] | list[str] | None`, found `str | bool | dict[Unknown | str, Unknown | int] | None`
[error] invalid-argument-type - :27:47 - Argument is incorrect: Expected `str | None`, found `str | bool | dict[Unknown | str, Unknown | int] | None`
[error] invalid-argument-type - :27:47 - Argument is incorrect: Expected `str | list[str] | None`, found `str | bool | dict[Unknown | str, Unknown | int] | None`
[error] invalid-argument-type - :27:47 - Argument is incorrect: Expected `str | list[str] | None`, found `str | bool | dict[Unknown | str, Unknown | int] | None`
[error] invalid-argument-type - :27:47 - Argument is incorrect: Expected `str`, found `str | bool | dict[Unknown | str, Unknown | int] | None`
[error] invalid-argument-type - :42:47 - Argument is incorrect: Expected `dict[str, Any]`, found `str`
[error] invalid-argument-type - :55:47 - Argument is incorrect: Expected `dict[str, Any]`, found `str`
[error] invalid-argument-type - :68:47 - Argument is incorrect: Expected `dict[str, Any]`, found `str`
[error] invalid-argument-type - :81:47 - Argument is incorrect: Expected `dict[str, Any]`, found `str`

src/integrations/prefect-dbt/prefect_dbt/cli/commands.py

[error] invalid-await - :461:21 - `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
[error] invalid-await - :535:21 - `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
[error] invalid-await - :610:21 - `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
[error] invalid-await - :685:21 - `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
[error] invalid-await - :760:21 - `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
[error] invalid-await - :835:21 - `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable

src/integrations/prefect-dbt/prefect_dbt/core/settings.py

[error] invalid-assignment - :94 -
Old: Object of type `T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
New: Object of type `T@resolve_block_document_references | dict[str, Any]` is not assignable to `dict[str, Any]`
[error] invalid-assignment - :99 -
Old: Object of type `T@resolve_variables | str | int | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
New: Object of type `T@resolve_variables | dict[str, Any]` is not assignable to `dict[str, Any]`

src/integrations/prefect-docker/tests/test_images.py

[error] invalid-argument-type - :16:44 - Argument is incorrect: Expected `DockerHost | None`, found `str | bool`
[error] invalid-argument-type - :16:44 - Argument is incorrect: Expected `DockerRegistryCredentials | None`, found `str | bool`
[error] invalid-argument-type - :16:44 - Argument is incorrect: Expected `bool`, found `str | bool`
[error] invalid-argument-type - :16:44 - Argument is incorrect: Expected `dict[str, Any]`, found `str | bool`
[error] invalid-argument-type - :16:44 - Argument is incorrect: Expected `str | None`, found `str | bool`
[error] invalid-argument-type - :16:44 - Argument is incorrect: Expected `str | None`, found `str | bool`
[error] invalid-argument-type - :16:44 - Argument is incorrect: Expected `str`, found `str | bool`
[warning] possibly-missing-attribute - :21:16 - Attribute `id` may be missing on object of type `Unknown | list[Unknown]`
[error] invalid-argument-type - :29:47 - Argument is incorrect: Expected `DockerRegistryCredentials | None`, found `str`
[error] invalid-argument-type - :29:47 - Argument is incorrect: Expected `bool`, found `str`
[error] invalid-argument-type - :29:47 - Argument is incorrect: Expected `dict[str, Any]`, found `str`
[warning] possibly-missing-attribute - :31:16 - Attribute `id` may be missing on object of type `Unknown | list[Unknown]`
[error] invalid-argument-type - :51:17 - Argument is incorrect: Expected `bool`, found `str`
[error] invalid-argument-type - :51:17 - Argument is incorrect: Expected `dict[str, Any]`, found `str`
[warning] possibly-missing-attribute - :53:16 - Attribute `id` may be missing on object of type `Unknown | list[Unknown]`
[error] invalid-argument-type - :64:47 - Argument is incorrect: Expected `DockerRegistryCredentials | None`, found `str | bool`
[error] invalid-argument-type - :64:47 - Argument is incorrect: Expected `bool`, found `str | bool`
[error] invalid-argument-type - :64:47 - Argument is incorrect: Expected `dict[str, Any]`, found `str | bool`
[error] invalid-argument-type - :64:47 - Argument is incorrect: Expected `str | None`, found `str | bool`
[error] invalid-argument-type - :64:47 - Argument is incorrect: Expected `str | None`, found `str | bool`
[error] invalid-argument-type - :64:47 - Argument is incorrect: Expected `str`, found `str | bool`

src/integrations/prefect-kubernetes/prefect_kubernetes/jobs.py

[error] invalid-argument-type - :429:17 - Argument is incorrect: Expected `dict[str, Any]`, found `str`

src/integrations/prefect-kubernetes/tests/test_custom_objects.py

[error] invalid-argument-type - :20:13 - Argument is incorrect: Expected `dict[str, Any]`, found `None`
[error] invalid-argument-type - :29:13 - Argument is incorrect: Expected `dict[str, Any]`, found `None`
[error] invalid-argument-type - :38:13 - Argument is incorrect: Expected `dict[str, Any]`, found `None`
[error] invalid-argument-type - :57:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :103:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :149:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :195:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :240:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :286:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :344:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`

src/integrations/prefect-kubernetes/tests/test_deployments.py

[error] invalid-argument-type - :18:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :38:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :70:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :92:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :113:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :141:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`

src/integrations/prefect-kubernetes/tests/test_jobs.py

[error] invalid-argument-type - :36:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :52:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :68:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :87:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :107:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :131:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :159:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`

src/integrations/prefect-kubernetes/tests/test_pods.py

[error] invalid-argument-type - :29:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :46:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :78:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :96:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :115:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :137:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`
[error] invalid-argument-type - :167:9 - Argument is incorrect: Expected `dict[str, Any]`, found `Literal["test"]`

src/prefect/cache_policies.py

[warning] possibly-missing-attribute - :311 -
Old: Attribute `__code__` may be missing on object of type `Unknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))`
New: Attribute `__code__` may be missing on object of type `Unknown | ((...) -> Any)`

src/prefect/cli/deploy/_core.py

[error] invalid-assignment - :86 -
Old: Object of type `T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
New: Object of type `T@resolve_block_document_references | dict[str, Any]` is not assignable to `dict[str, Any]`
[error] invalid-assignment - :87 -
Old: Object of type `T@resolve_variables | str | int | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
New: Object of type `T@resolve_variables` is not assignable to `dict[str, Any]`

src/prefect/deployments/runner.py

[warning] possibly-missing-attribute - :795 -
Old: Attribute `__name__` may be missing on object of type `Unknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))`
New: Attribute `__name__` may be missing on object of type `Unknown | ((...) -> Any)`

src/prefect/deployments/steps/core.py

[error] invalid-argument-type - :137 -
Old: Argument is incorrect: Expected `T@resolve_variables`, found `T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements`
New: Argument is incorrect: Expected `T@resolve_variables`, found `T@resolve_block_document_references | dict[str, Any]`

src/prefect/flow_engine.py

[error] invalid-argument-type - :1482:43 - Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Unknown | R@run_generator_flow_sync`
[warning] possibly-missing-attribute - :1490:21 - Attribute `throw` may be missing on object of type `Unknown | R@run_generator_flow_sync`
[warning] possibly-missing-attribute - :1524:44 - Attribute `__anext__` may be missing on object of type `Unknown | R@run_generator_flow_async`
[warning] possibly-missing-attribute - :1531:25 - Attribute `throw` may be missing on object of type `Unknown | R@run_generator_flow_async`
[error] invalid-await - :812:32 - `Unknown | R@FlowRunEngine | Coroutine[Any, Any, R@FlowRunEngine]` is not awaitable
[error] invalid-await - :1401:24 - `Unknown | R@AsyncFlowRunEngine | Coroutine[Any, Any, R@AsyncFlowRunEngine]` is not awaitable

src/prefect/flows.py

[warning] unused-ignore-comment - :1750:53 - Unused blanket `type: ignore` directive
[error] unresolved-attribute - :286 -
Old: Object of type `((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)` has no attribute `__name__`
New: Object of type `(**P@Flow) -> R@Flow` has no attribute `__name__`
[error] unresolved-attribute - :404 -
Old: Object of type `((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)` has no attribute `__name__`
New: Object of type `(**P@Flow) -> R@Flow` has no attribute `__name__`

src/prefect/task_engine.py

[error] invalid-await - :1613:28 - `Unknown | R@AsyncTaskRunEngine | Coroutine[Any, Any, R@AsyncTaskRunEngine]` is not awaitable
[error] invalid-argument-type - :1721:47 - Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Unknown | R@run_generator_task_sync`
[warning] possibly-missing-attribute - :1734:25 - Attribute `throw` may be missing on object of type `Unknown | R@run_generator_task_sync`
[warning] possibly-missing-attribute - :1780:48 - Attribute `__anext__` may be missing on object of type `Unknown | R@run_generator_task_async`
[warning] possibly-missing-attribute - :1792:29 - Attribute `throw` may be missing on object of type `Unknown | R@run_generator_task_async`

src/prefect/tasks.py

[warning] possibly-missing-attribute - :184 -
Old: Attribute `__code__` may be missing on object of type `Unknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))`
New: Attribute `__code__` may be missing on object of type `Unknown | ((...) -> Any)`

src/prefect/utilities/templating.py

[error] invalid-assignment - :320 -
Old: Invalid subscript assignment with key of type `object` and value of type `T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements` on object of type `dict[str, Any]`
New: Invalid subscript assignment with key of type `object` and value of type `T@resolve_block_document_references | dict[str, Any]` on object of type `dict[str, Any]`
[error] invalid-return-type - :323 -
Old: Return type does not match returned value: expected `T@resolve_block_document_references | dict[str, Any]`, found `list[T@resolve_block_document_references | dict[str, Any] | str | ... omitted 5 union elements]`
New: Return type does not match returned value: expected `T@resolve_block_document_references | dict[str, Any]`, found `list[T@resolve_block_document_references | dict[str, Any] | Unknown]`
[error] invalid-return-type - :437 -
Old: Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, T@resolve_variables | str | int | ... omitted 5 union elements]`
New: Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, T@resolve_variables | Unknown]`
[error] invalid-return-type - :442 -
Old: Return type does not match returned value: expected `T@resolve_variables`, found `list[T@resolve_variables | str | int | ... omitted 5 union elements]`
New: Return type does not match returned value: expected `T@resolve_variables`, found `list[T@resolve_variables | Unknown]`

src/prefect/workers/base.py

[error] invalid-argument-type - :232 -
Old: Argument is incorrect: Expected `T@resolve_variables`, found `T@resolve_block_document_references | dict[str, Any] | str | ... omitted 4 union elements`
New: Argument is incorrect: Expected `T@resolve_variables`, found `T@resolve_block_document_references | dict[str, Any]`
[error] invalid-argument-type - :234 -
Old: Argument expression after ** must be a mapping type: Found `T@resolve_variables | str | int | ... omitted 4 union elements`
New: Argument expression after ** must be a mapping type: Found `T@resolve_variables`

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

static_frame/core/bus.py

[error] invalid-return-type - :671:16 - Return type does not match returned value: expected `InterGetItemLocReduces[Bus[Any], object_]`, found `InterGetItemLocReduces[Bus[Any] | Bottom[Index[Any]] | TypeBlocks | ... 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[Self@iloc | Bus[Any], object_ | Self@iloc]`
New: Return type does not match returned value: expected `InterGetItemILocReduces[Bus[Any], object_]`, found `InterGetItemILocReduces[Bus[Any] | Bottom[Index[Any]] | TypeBlocks | ... omitted 6 union elements, object_ | Self@iloc]`

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[Bottom[Series[Any, Any]] | Any, TVDtype@Index]`
New: Return type does not match returned value: expected `InterGetItemLocReduces[TVContainer_co@loc, TVDtype@Index]`, found `InterGetItemLocReduces[Any | Bottom[Series[Any, Any]], TVDtype@Index]`

static_frame/core/series.py

[error] invalid-return-type - :772 -
Old: Return type does not match returned value: expected `InterGetItemILocReduces[Series[Any, Any], TVDtype@Series]`, found `InterGetItemILocReduces[Series[Any, Any] | Bottom[Index[Any]] | TypeBlocks | ... omitted 6 union elements, TVDtype@Series]`
New: Return type does not match returned value: expected `InterGetItemILocReduces[Series[Any, Any], TVDtype@Series]`, found `InterGetItemILocReduces[Series[Any, Any] | ndarray[Never, Never] | TypeBlocks | ... omitted 6 union elements, TVDtype@Series]`

static_frame/core/yarn.py

[error] invalid-return-type - :418:16 - Return type does not match returned value: expected `InterGetItemILocReduces[Yarn[Any], object_]`, found `InterGetItemILocReduces[Yarn[Any] | ndarray[Never, Never] | TypeBlocks | ... omitted 6 union elements, object_]`