Ecosystem report

Old: main (merge base) 3b5d0d5a New: 22777/merge 695f6a31
Lint Rule Removed Added Changed
Total 9 4 23
invalid-argument-type 2 2 4
invalid-await 2 0 6
invalid-assignment 0 0 5
invalid-return-type 0 1 3
possibly-missing-attribute 3 0 1
unused-ignore-comment 2 1 0
unresolved-attribute 0 0 2
unsupported-operator 0 0 2
Project Removed Added Changed
Total 9 4 23
prefect 6 1 20
rotki 3 2 0
pwndbg 0 0 2
attrs 0 0 1
core 0 1 0

attrs (https://github.com/python-attrs/attrs)

tests/test_validators.py

[error] invalid-argument-type - :1257 -
Old: Argument is incorrect: Expected `int | float`, found `Literal["spam"]`
New: Argument is incorrect: Expected `float | int`, found `Literal["spam"]`

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, int | _R@ignore_variance | float | datetime, _P@ignore_variance, _R@ignore_variance | int | float | datetime]`

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

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

[error] invalid-await - :461 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :535 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :610 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :685 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :760 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` is not awaitable
[error] invalid-await - :835 -
Old: `Unknown | None | Coroutine[Any, Any, Unknown | None]` is not awaitable
New: `Unknown | None | Coroutine[Any, Any, None | Unknown]` 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/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)`
New: Attribute `__name__` may be missing on object of type `Unknown | (((...) -> Any) & ((*args: object, **kwargs: object) -> object))`

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` has no attribute `__name__`
New: Object of type `((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)` has no attribute `__name__`
[error] unresolved-attribute - :404 -
Old: Object of type `(**P@Flow) -> R@Flow` has no attribute `__name__`
New: Object of type `((**P@Flow) -> R@Flow) & ((*args: object, **kwargs: object) -> object)` has no attribute `__name__`

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[Unknown | T@resolve_block_document_references | dict[str, Any] | ... omitted 5 union elements]`
New: Return type does not match returned value: expected `T@resolve_block_document_references | dict[str, Any]`, found `list[Unknown | T@resolve_block_document_references | dict[str, Any]]`
[error] invalid-return-type - :437 -
Old: Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, Unknown | T@resolve_variables | str | ... omitted 5 union elements]`
New: Return type does not match returned value: expected `T@resolve_variables`, found `dict[object, Unknown | T@resolve_variables]`
[error] invalid-return-type - :442 -
Old: Return type does not match returned value: expected `T@resolve_variables`, found `list[Unknown | T@resolve_variables | str | ... omitted 5 union elements]`
New: Return type does not match returned value: expected `T@resolve_variables`, found `list[Unknown | T@resolve_variables]`

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`

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

pwndbg/aglib/kernel/__init__.py

[error] unsupported-operator - :218 -
Old: Operator `+` is not supported between objects of type `Unknown | None` and `Literal[1]`
New: Operator `+` is not supported between objects of type `None | Unknown` and `Literal[1]`
[error] unsupported-operator - :224 -
Old: Operator `+` is not supported between objects of type `Unknown | None` and `int`
New: Operator `+` is not supported between objects of type `None | Unknown` and `int`

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

rotkehlchen/chain/decoding/tools.py

[error] invalid-argument-type - :98:13 - Argument to function `decode_transfer_direction` is incorrect: Expected `BTCAddress | ChecksumAddress | SubstrateAddress | SolanaAddress | None`, found `A@BaseDecoderTools | None`
[warning] unused-ignore-comment - :96:44 - Unused blanket `type: ignore` directive
[error] invalid-argument-type - :99:13 - Argument to function `decode_transfer_direction` is incorrect: Expected `Sequence[A@BaseDecoderTools]`, found `Unknown | tuple[BTCAddress, ...] | tuple[ChecksumAddress, ...] | tuple[SubstrateAddress, ...] | tuple[SolanaAddress, ...]`
[warning] unused-ignore-comment - :100:62 - Unused blanket `type: ignore` directive
[error] invalid-argument-type - :97:13 - Argument to function `decode_transfer_direction` is incorrect: Expected `BTCAddress | ChecksumAddress | SubstrateAddress | SolanaAddress`, found `A@BaseDecoderTools`