Ecosystem report

Old: main (merge base) abaa735e New: 22291/merge 0f5b56b5
Lint Rule Removed Added Changed
Total 51 51 19
possibly-missing-attribute 3 21 1
unsupported-base 24 0 0
invalid-return-type 12 1 7
invalid-argument-type 5 6 3
invalid-assignment 2 4 5
unresolved-attribute 1 7 3
unused-ignore-comment 2 9 0
invalid-await 2 0 0
invalid-method-override 0 2 0
too-many-positional-arguments 0 1 0
Project Removed Added Changed
Total 51 51 19
speedrun.com_global_scoreboard_webapp 6 21 0
prefect 6 1 14
setuptools 10 2 0
pydantic 8 0 0
schemathesis 1 7 0
artigraph 6 0 0
aiohttp-devtools 0 5 0
rotki 2 3 0
scrapy 2 3 0
black 0 4 0
pandera 3 0 0
spack 2 1 0
static-frame 0 0 3
jax 2 0 0
jinja 1 1 0
sphinx 0 2 0
Tanjun 0 0 1
meson 1 0 0
nox 0 1 0
pip 1 0 0

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`

aiohttp-devtools (https://github.com/aio-libs/aiohttp-devtools)

tests/test_runserver_logs.py

[error] invalid-argument-type - :17:27 - Argument to bound method `__init__` is incorrect: Expected `Logger`, found `Logger`
[error] invalid-argument-type - :39:27 - Argument to bound method `__init__` is incorrect: Expected `Logger`, found `Logger`
[error] invalid-argument-type - :61:30 - Argument to bound method `__init__` is incorrect: Expected `Logger`, found `Logger`
[error] invalid-argument-type - :84:30 - Argument to bound method `__init__` is incorrect: Expected `Logger`, found `Logger`
[error] invalid-argument-type - :99:27 - Argument to bound method `__init__` is incorrect: Expected `Logger`, found `Logger`

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

tests/arti/views/test_views.py

[warning] unsupported-base - :23:15 - Unsupported class base with type `type[View]`
[warning] unsupported-base - :32:15 - Unsupported class base with type `type[View]`
[warning] unsupported-base - :35:16 - Unsupported class base with type `type[View]`
[warning] unsupported-base - :39:15 - Unsupported class base with type `type[View]`
[warning] unsupported-base - :49:16 - Unsupported class base with type `type[View]`
[warning] unsupported-base - :60:16 - Unsupported class base with type `type[View]`

black (https://github.com/psf/black)

src/black/linegen.py

[error] invalid-assignment - :775:32 - Object of type `list[((Line, Collection[Feature], Mode, /) -> Iterator[Line]) | rhs]` is not assignable to `list[(Line, Collection[Feature], Mode, /) -> Iterator[Line]]`
[error] invalid-assignment - :785:32 - Object of type `list[((Line, Collection[Feature], Mode, /) -> Iterator[Line]) | rhs]` is not assignable to `list[(Line, Collection[Feature], Mode, /) -> Iterator[Line]]`
[error] invalid-assignment - :794:32 - Object of type `list[((Line, Collection[Feature], Mode, /) -> Iterator[Line]) | rhs]` is not assignable to `list[(Line, Collection[Feature], Mode, /) -> Iterator[Line]]`
[error] invalid-assignment - :796:32 - Object of type `list[((Line, Collection[Feature], Mode, /) -> Iterator[Line]) | rhs]` is not assignable to `list[(Line, Collection[Feature], Mode, /) -> Iterator[Line]]`

jax (https://github.com/google/jax)

jax/_src/interpreters/partial_eval.py

[warning] unused-ignore-comment - :1704:79 - Unused blanket `type: ignore` directive
[warning] unused-ignore-comment - :1720:81 - Unused blanket `type: ignore` directive

jinja (https://github.com/pallets/jinja)

src/jinja2/runtime.py

[warning] unused-ignore-comment - :943:36 - Unused blanket `type: ignore` directive
[error] invalid-return-type - :948:14 - Function always implicitly returns `None`, which is not assignable to return type `Never`

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

mesonbuild/_pathlib.py

[warning] unsupported-base - :42:16 - Unsupported class base with type `type[Path]`

nox (https://github.com/wntrblm/nox)

nox/logger.py

[warning] unused-ignore-comment - :84:62 - Unused blanket `type: ignore` directive

pandera (https://github.com/pandera-dev/pandera)

pandera/api/dataframe/model.py

[error] invalid-assignment - :257:13 - Object of type `type` is not assignable to attribute `Config` of type `type[BaseConfig]`
[error] invalid-return-type - :455:16 - Return type does not match returned value: expected `tuple[type[BaseConfig], dict[str, Any]]`, found `tuple[type, dict[str, Any]]`

pandera/api/pyspark/model.py

[error] invalid-assignment - :162:13 - Object of type `type` is not assignable to attribute `Config` of type `type[BaseConfig]`

pip (https://github.com/pypa/pip)

src/pip/_vendor/urllib3/request.py

[warning] unsupported-base - :178:25 - Unsupported class base with type `type[ModuleType]`

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

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]` is not assignable to `dict[str, Any]`
New: Object of type `T@resolve_block_document_references | int | dict[str, Any] | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
[error] invalid-assignment - :99 -
Old: Object of type `T@resolve_variables | dict[str, Any]` is not assignable to `dict[str, Any]`
New: Object of type `int | T@resolve_variables | float | ... 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 `T@resolve_block_document_references | dict[str, Any]` is not assignable to `dict[str, Any]`
New: Object of type `T@resolve_block_document_references | int | dict[str, Any] | ... omitted 4 union elements` is not assignable to `dict[str, Any]`
[error] invalid-assignment - :87 -
Old: Object of type `T@resolve_variables` is not assignable to `dict[str, Any]`
New: Object of type `int | T@resolve_variables | float | ... omitted 4 union elements` 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]`
New: Argument is incorrect: Expected `T@resolve_variables`, found `T@resolve_block_document_references | int | dict[str, Any] | ... omitted 4 union elements`

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

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

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

pydantic/v1/networks.py

[error] invalid-return-type - :572:12 - Return type does not match returned value: expected `type[AnyUrl]`, found `type`

pydantic/v1/types.py

[error] invalid-return-type - :239:12 - Return type does not match returned value: expected `type[int]`, found `type`
[error] invalid-return-type - :318:12 - Return type does not match returned value: expected `type[int] | type[float]`, found `type`
[error] invalid-return-type - :391:12 - Return type does not match returned value: expected `type[bytes]`, found `type`
[error] invalid-return-type - :471:12 - Return type does not match returned value: expected `type[str]`, found `type`
[error] invalid-return-type - :749:12 - Return type does not match returned value: expected `type[Decimal]`, found `type`
[error] invalid-return-type - :833:16 - Return type does not match returned value: expected `type[JsonWrapper]`, found `type`
[error] invalid-return-type - :1205:12 - Return type does not match returned value: expected `type[date]`, found `type`

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

rotkehlchen/chain/decoding/tools.py

[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 - :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`

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

src/schemathesis/engine/phases/stateful/_executor.py

[warning] unused-ignore-comment - :90:54 - Unused blanket `type: ignore` directive
[error] invalid-method-override - :115:13 - Invalid override of method `step`: Definition is incompatible with `APIStateMachine.step`
[error] invalid-method-override - :168:13 - Invalid override of method `validate_response`: Definition is incompatible with `APIStateMachine.validate_response`
[error] unresolved-attribute - :171:13 - Object of type `Self@validate_response` has no attribute `recorder`
[error] unresolved-attribute - :194:26 - Object of type `Self@validate_response` has no attribute `recorder`
[error] unresolved-attribute - :203:26 - Object of type `Self@validate_response` has no attribute `recorder`
[error] unresolved-attribute - :216:30 - Object of type `Self@teardown` has no attribute `recorder`

src/schemathesis/specs/openapi/stateful/__init__.py

[error] invalid-return-type - :206:12 - Return type does not match returned value: expected `type[APIStateMachine]`, found `type`

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

scrapy/utils/deprecate.py

[warning] unused-ignore-comment - :63:50 - Unused blanket `type: ignore` directive

tests/test_utils_datatypes.py

[error] too-many-positional-arguments - :171:20 - Too many positional arguments to bound method `__init__`: expected 1, got 2
[error] unresolved-attribute - :190:13 - Class `MyDict` has no attribute `fromkeys`
[warning] unsupported-base - :152:22 - Unsupported class base with type `type[MutableMapping[Unknown, Unknown]]`
[warning] unsupported-base - :163:22 - Unsupported class base with type `type[MutableMapping[Unknown, Unknown]]`

setuptools (https://github.com/pypa/setuptools)

setuptools/_vendor/wheel/macosx_libfile.py

[warning] unsupported-base - :296:29 - Unsupported class base with type `type[Structure]`
[warning] unsupported-base - :302:31 - Unsupported class base with type `type[Structure]`
[warning] unsupported-base - :307:31 - Unsupported class base with type `type[Structure]`
[warning] unsupported-base - :359:23 - Unsupported class base with type `type[Structure]`
[warning] unsupported-base - :364:26 - Unsupported class base with type `type[Structure]`
[warning] unsupported-base - :369:26 - Unsupported class base with type `type[Structure]`
[warning] unsupported-base - :379:37 - Unsupported class base with type `type[Structure]`
[warning] unsupported-base - :386:32 - Unsupported class base with type `type[Structure]`

setuptools/_distutils/compilers/C/msvc.py

[error] unresolved-attribute - :583:13 - Unresolved attribute `value` on type `Bag`.

setuptools/tests/test_editable_install.py

[error] unresolved-attribute - :1206:53 - Object of type `SimulatedErr` has no attribute `__notes__`
[error] invalid-argument-type - :1204:24 - Argument to function `raises` is incorrect: Argument type `object` does not satisfy upper bound `BaseException` of type variable `E`
[error] invalid-argument-type - :1204:24 - Argument to function `raises` is incorrect: Expected `type[BaseException] | tuple[type[BaseException], ...]`, found `type`

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

lib/spack/spack/test/packages.py

[error] unresolved-attribute - :417:9 - Object of type `type` has no attribute `name`

lib/spack/spack/vendor/jinja2/runtime.py

[warning] unused-ignore-comment - :985:36 - Unused blanket `type: ignore` directive
[error] invalid-return-type - :990:14 - Function always implicitly returns `None`, which is not assignable to return type `Never`

speedrun.com_global_scoreboard_webapp (https://github.com/Avasam/speedrun.com_global_scoreboard_webapp)

backend/api/game_search_api.py

[warning] possibly-missing-attribute - :16:31 - Attribute `all` may be missing on object of type `Query[Any] | None`

backend/models/core_models.py

[warning] possibly-missing-attribute - :243:13 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :290:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :341:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :348:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :363:34 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :381:21 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :397:13 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :416:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :432:40 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :447:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :453:13 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :490:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :496:13 - Attribute `filter` may be missing on object of type `Query[Any] | None`

backend/models/game_search_models.py

[warning] possibly-missing-attribute - :98:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] unsupported-base - :9:18 - Unsupported class base with type `type[Model]`

backend/models/tournament_scheduler_models.py

[warning] possibly-missing-attribute - :54:41 - Attribute `get` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :61:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :103:46 - Attribute `get` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :108:41 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :154:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] possibly-missing-attribute - :161:17 - Attribute `filter` may be missing on object of type `Query[Any] | None`
[warning] unsupported-base - :16:16 - Unsupported class base with type `type[Model]`
[warning] unsupported-base - :83:21 - Unsupported class base with type `type[Model]`
[warning] unsupported-base - :120:16 - Unsupported class base with type `type[Model]`
[warning] unsupported-base - :198:20 - Unsupported class base with type `type[Model]`
[warning] unsupported-base - :228:19 - Unsupported class base with type `type[Model]`

sphinx (https://github.com/sphinx-doc/sphinx)

sphinx/domains/__init__.py

[warning] unused-ignore-comment - :194:49 - Unused blanket `type: ignore` directive
[error] invalid-return-type - :197:24 - Return type does not match returned value: expected `list[Node]`, found `Sequence[Node]`

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[Bus[Any] | TypeBlocks | Batch | ... omitted 6 union elements, object_]`
New: Return type does not match returned value: expected `InterGetItemLocReduces[Bus[Any], object_]`, found `InterGetItemLocReduces[Bus[Any] | Bottom[Index[Any]] | Bottom[Series[Any, Any]] | ... omitted 6 union elements, 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[Bottom[Series[Any, Any]] | Any, TVDtype@Index]`

static_frame/core/yarn.py

[error] invalid-return-type - :418 -
Old: Return type does not match returned value: expected `InterGetItemILocReduces[Yarn[Any], object_]`, found `InterGetItemILocReduces[Yarn[Any] | TypeBlocks | Batch | ... omitted 6 union elements, object_]`
New: Return type does not match returned value: expected `InterGetItemILocReduces[Yarn[Any], object_]`, found `InterGetItemILocReduces[Yarn[Any] | Bottom[Index[Any]] | TypeBlocks | ... omitted 6 union elements, object_]`

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

src/trio/_tests/test_util.py

[error] unresolved-attribute - :236 -
Old: Unresolved attribute `recursion` on type `type`.
New: Unresolved attribute `recursion` on type `<class 'SomeClass'>`.