Ecosystem report

Old: main (merge base) 77a1740f New: 22838/merge bf928ed4
Lint Rule Removed Added Changed
Total 12 11 15
empty-body 10 0 0
invalid-return-type 0 8 1
invalid-parameter-default 0 0 7
invalid-argument-type 2 1 3
invalid-assignment 0 0 4
unused-type-ignore-comment 0 2 0
Project Removed Added Changed
Total 12 11 15
prefect 5 5 6
pydantic 0 0 9
rotki 2 3 0
django-stubs 1 1 0
ibis 1 1 0
streamlit 2 0 0
trio 1 1 0

django-stubs (https://github.com/typeddjango/django-stubs)

mypy_django_plugin/config.py

[error] empty-body - :46:57 - Function always implicitly returns `None`, which is not assignable to return type `Never`
[error] invalid-return-type - :46:57 - Function always implicitly returns `None`, which is not assignable to return type `Never`

ibis (https://github.com/ibis-project/ibis)

ibis/backends/bigquery/__init__.py

[error] empty-body - :455:10 - Function always implicitly returns `None`, which is not assignable to return type `Backend`
[error] invalid-return-type - :455:10 - Function always implicitly returns `None`, which is not assignable to return type `Backend`

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

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

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

src/prefect/cli/deploy/_core.py

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

src/prefect/deployments/steps/core.py

[error] invalid-argument-type - :137 -
Old: Argument is incorrect: Argument type `dict[str, Any] | int | dict[Any, Any] | ... omitted 4 union elements` does not satisfy constraints (`str`, `int`, `int | float`, `bool`, `dict[Any, Any]`, `list[Any]`, `None`) of type variable `T`
New: Argument is incorrect: Argument type `dict[Any, Any] | int | dict[str, Any] | ... omitted 4 union elements` does not satisfy constraints (`str`, `int`, `int | float`, `bool`, `dict[Any, Any]`, `list[Any]`, `None`) of type variable `T`

src/prefect/infrastructure/provisioners/container_instance.py

[error] empty-body - :217:45 - Function always implicitly returns `None`, which is not assignable to return type `str`
[error] invalid-return-type - :217:45 - Function always implicitly returns `None`, which is not assignable to return type `str`

src/prefect/server/events/stream.py

[error] empty-body - :168:54 - Function always implicitly returns `None`, which is not assignable to return type `Never`
[error] invalid-return-type - :168:54 - Function always implicitly returns `None`, which is not assignable to return type `Never`

src/prefect/server/services/base.py

[error] empty-body - :104:36 - Function always implicitly returns `None`, which is not assignable to return type `Never`
[error] invalid-return-type - :104:36 - Function always implicitly returns `None`, which is not assignable to return type `Never`

src/prefect/tasks.py

[error] empty-body - :1801:31 - Function always implicitly returns `None`, which is not assignable to return type `Never`
[error] invalid-return-type - :1801:31 - Function always implicitly returns `None`, which is not assignable to return type `Never`
[error] empty-body - :1827:24 - Function always implicitly returns `None`, which is not assignable to return type `Never`
[error] invalid-return-type - :1827:24 - Function always implicitly returns `None`, which is not assignable to return type `Never`

src/prefect/utilities/templating.py

[error] invalid-assignment - :320 -
Old: Invalid subscript assignment with key of type `object` and value of type `dict[str, Any] | int | Unknown | ... omitted 4 union elements` on object of type `dict[str, Any]`
New: Invalid subscript assignment with key of type `object` and value of type `Unknown | int | dict[str, Any] | ... omitted 4 union elements` 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 | dict[str, Any] | int | ... omitted 4 union elements]`
New: Return type does not match returned value: expected `T@resolve_block_document_references | dict[str, Any]`, found `list[Unknown | int | dict[str, Any] | ... omitted 4 union elements]`

src/prefect/workers/base.py

[error] invalid-argument-type - :232 -
Old: Argument is incorrect: Argument type `dict[str, Any] | int | str | ... omitted 3 union elements` does not satisfy constraints (`str`, `int`, `int | float`, `bool`, `dict[Any, Any]`, `list[Any]`, `None`) of type variable `T`
New: Argument is incorrect: Argument type `str | int | dict[str, Any] | ... omitted 3 union elements` does not satisfy constraints (`str`, `int`, `int | float`, `bool`, `dict[Any, Any]`, `list[Any]`, `None`) of type variable `T`

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

pydantic/_internal/_core_metadata.py

[error] invalid-assignment - :87 -
Old: Invalid assignment to key "pydantic_js_extra" with declared type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | ((dict[str, int | float | str | ... omitted 3 union elements], type[Any], /) -> None)` on TypedDict `CoreMetadata`: value of type `dict[object, object]`
New: Invalid assignment to key "pydantic_js_extra" with declared type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | ((dict[str, Divergent], type[Any], /) -> None)` on TypedDict `CoreMetadata`: value of type `dict[object, object]`

pydantic/fields.py

[error] invalid-parameter-default - :949 -
Old: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
New: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
[error] invalid-parameter-default - :989 -
Old: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
New: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
[error] invalid-parameter-default - :1032 -
Old: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
New: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
[error] invalid-parameter-default - :1072 -
Old: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
New: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
[error] invalid-parameter-default - :1115 -
Old: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
New: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
[error] invalid-parameter-default - :1154 -
Old: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
New: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
[error] invalid-parameter-default - :1194 -
Old: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`
New: Default value of type `PydanticUndefinedType` is not assignable to annotated parameter type `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`
[error] invalid-argument-type - :1573 -
Old: Argument is incorrect: Expected `dict[str, int | float | str | ... omitted 3 union elements] | ((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) | None`, found `Top[dict[Unknown, Unknown]] | (((dict[str, int | float | str | ... omitted 3 union elements], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None`
New: Argument is incorrect: Expected `dict[str, Divergent] | ((dict[str, Divergent], /) -> None) | None`, found `Top[dict[Unknown, Unknown]] | (((dict[str, Divergent], /) -> None) & ~Top[dict[Unknown, Unknown]]) | None`

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

rotkehlchen/chain/decoding/tools.py

[warning] unused-type-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-type-ignore-comment - :100:62 - Unused blanket `type: ignore` directive
[error] invalid-argument-type - :98:13 - Argument to function `decode_transfer_direction` is incorrect: Expected `BTCAddress | ChecksumAddress | SubstrateAddress | SolanaAddress | None`, found `A@BaseDecoderTools | None`
[error] invalid-argument-type - :97:13 - Argument to function `decode_transfer_direction` is incorrect: Expected `BTCAddress | ChecksumAddress | SubstrateAddress | SolanaAddress`, found `A@BaseDecoderTools`

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

lib/streamlit/commands/execution_control.py

[error] empty-body - :136:6 - Function always implicitly returns `None`, which is not assignable to return type `Never`
[error] empty-body - :192:6 - Function always implicitly returns `None`, which is not assignable to return type `Never`

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

src/trio/_highlevel_ssl_helpers.py

[error] empty-body - :120:6 - Function always implicitly returns `None`, which is not assignable to return type `Never`
[error] invalid-return-type - :120:6 - Function always implicitly returns `None`, which is not assignable to return type `Never`