Ecosystem report

Old: main (merge base) d1a23cd5 New: 24317/merge 15443e51
Lint Rule Removed Added Changed
Total 60 80 8
invalid-await 40 0 0
unresolved-attribute 0 28 0
invalid-argument-type 0 19 4
unused-type-ignore-comment 15 2 0
unsupported-operator 0 14 0
not-subscriptable 0 13 0
invalid-assignment 1 4 4
invalid-return-type 4 0 0
Project Removed Added Changed
Total 60 80 8
prefect 41 10 0
pandas 1 12 1
optuna 0 13 0
core 0 11 0
PyWinCtl 10 0 0
dd-trace-py 0 9 0
static-frame 2 4 0
sympy 2 4 0
pydantic 0 1 4
egglog-python 0 2 1
mypy 0 3 0
Expression 0 1 1
hydra-zen 2 0 0
ignite 0 2 0
streamlit 0 2 0
vision 0 2 0
attrs 0 0 1
cki-lib 1 0 0
meson 0 1 0
paasta 1 0 0

Expression (https://github.com/cognitedata/Expression)

expression/extra/parser.py

[error] invalid-argument-type - Argument is incorrect: Expected `Never`, found `Parser[_A@choice]`

tests/test_result.py

[error] invalid-argument-type - Argument to bound method `or_else_with` is incorrect: Expected `(Literal["original error"], /) -> Result[Any, Literal["original error"]]`, found `(error: Literal["original error"]) -> Result[Any, str]`
[error] invalid-argument-type - Argument to bound method `or_else_with` is incorrect: Expected `(Literal["original error"], /) -> Result[Any, Literal["original error"]]`, found `(error: Literal["original error"]) -> Result[Any, Literal["new error from original error"]]`

PyWinCtl (https://github.com/Kalmat/PyWinCtl)

src/pywinctl/_main.py

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

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

tests/test_cmp.py

[error] invalid-argument-type - Argument to function `cmp_using` is incorrect: Expected `((Any, Any, /) -> bool) | None`, found `(a: Any, b: Any) -> _NotImplementedType | (bool & Unknown)`
[error] invalid-argument-type - Argument to function `cmp_using` is incorrect: Expected `((Any, Any, /) -> bool) | None`, found `(a: Any, b: Any) -> _NotImplementedType | (bool & Any)`

cki-lib (https://gitlab.com/cki-project/cki-lib)

cki_lib/owners.py

[error] invalid-return-type - Return type does not match returned value: expected `None`, found `str`

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

homeassistant/bootstrap.py

[error] invalid-argument-type - Argument to bound method `exception` is incorrect: Expected `None | bool | tuple[type[BaseException], BaseException, TracebackType | None] | tuple[None, None, None] | BaseException`, found `tuple[type[BaseException], BaseException | None, TracebackType | None]`

homeassistant/components/fronius/sensor.py

[error] invalid-argument-type - Argument to function `max` is incorrect: Argument type `str | int | float | None` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`
[error] invalid-argument-type - Argument to function `max` is incorrect: Expected `Literal[0]`, found `StateType`
[error] unsupported-operator - Operator `-` is not supported between objects of type `Literal[0]` and `StateType`
[error] invalid-argument-type - Argument to function `max` is incorrect: Argument type `str | int | float | None` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`
[error] invalid-argument-type - Argument to function `max` is incorrect: Expected `Literal[0]`, found `StateType`
[error] unsupported-operator - Operator `-` is not supported between objects of type `Literal[0]` and `StateType`
[error] invalid-argument-type - Argument to function `max` is incorrect: Argument type `str | int | float | None` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`
[error] invalid-argument-type - Argument to function `max` is incorrect: Expected `Literal[0]`, found `StateType`
[error] unsupported-operator - Operator `-` is not supported between objects of type `Literal[0]` and `StateType`

homeassistant/components/gardena_bluetooth/sensor.py

[error] invalid-assignment - Object of type `(x: T@GardenaBluetoothSensorEntityDescription | None) -> T@GardenaBluetoothSensorEntityDescription | None` is not assignable to `(T@GardenaBluetoothSensorEntityDescription | None, /) -> SensorRawType`

dd-trace-py (https://github.com/DataDog/dd-trace-py)

ddtrace/internal/settings/symbol_db.py

[error] unresolved-attribute - Object of type `Env` has no attribute `includes`

tests/debugging/exploration/_config.py

[error] unresolved-attribute - Object of type `Env` has no attribute `output_file`
[error] unresolved-attribute - Object of type `Env` has no attribute `output_file`
[error] unresolved-attribute - Object of type `Env` has no attribute `conservative`
[error] unresolved-attribute - Object of type `Env` has no attribute `conservative`

tests/internal/bytecode_injection/framework_injection/_config.py

[error] unresolved-attribute - Object of type `Env` has no attribute `output_file`
[error] unresolved-attribute - Object of type `Env` has no attribute `output_file`

ddtrace/internal/settings/dynamic_instrumentation.py

[error] unresolved-attribute - Object of type `Env` has no attribute `redacted_types`
[error] unresolved-attribute - Object of type `Env` has no attribute `redacted_types`

egglog-python (https://github.com/egraphs-good/egglog-python)

python/egglog/exp/array_api.py

[error] invalid-argument-type - Argument to bound method `if_` is incorrect: Expected `() -> NDArray`, found `() -> Value | Unknown | Int`
[error] invalid-argument-type - Argument to bound method `if_` is incorrect: Expected `() -> NDArray`, found `() -> Value | Int | i64 | ... omitted 5 union elements`
[error] invalid-argument-type - Method `__getitem__` of type `bound method Vec[Int].__getitem__(index: i64 | int) -> Int` cannot be called with key of type `Int` on object of type `Vec[Int]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method Vec[Value].__getitem__(index: i64 | int) -> Value` cannot be called with key of type `Int` on object of type `Vec[Value]`

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)

src/hydra_zen/wrapper/_implementations.py

[error] invalid-assignment - Object of type `((x: str | None) -> object) | (((str | None, /) -> str | None) & ~Top[Mapping[Unknown, object]])` is not assignable to `(str | None, /) -> str | None`
[warning] unused-type-ignore-comment - Unused blanket `type: ignore` directive

ignite (https://github.com/pytorch/ignite)

tests/ignite/handlers/test_checkpoint.py

[error] unresolved-attribute - Attribute `score` is not defined on `State` in union `Unknown | State`
[error] unresolved-attribute - Attribute `score` is not defined on `State` in union `Unknown | State`

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

mesonbuild/backend/ninjabackend.py

[error] unresolved-attribute - Attribute `startswith` is not defined on `None` in union `str | None`

mypy (https://github.com/python/mypy)

mypy/semanal.py

[error] invalid-argument-type - Argument to function `isinstance` is incorrect: Expected `type | UnionType | tuple[Divergent, ...]`, found `object`
[error] unresolved-attribute - Object of type `object` has no attribute `type`
[error] unresolved-attribute - Object of type `object` has no attribute `type`

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

optuna/samplers/_tpe/_erf.py

[error] invalid-assignment - Object of type `list[((ndarray[Unknown, dtype[Any]], /) -> ndarray[Unknown, dtype[Any]]) | ((x: ndarray[Unknown, dtype[Any]]) -> float64 | Any)]` is not assignable to `list[(ndarray[Unknown, dtype[Any]], /) -> ndarray[Unknown, dtype[Any]]]`

tests/visualization_tests/test_contour.py

[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

tests/visualization_tests/test_edf.py

[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

tests/visualization_tests/test_parallel_coordinate.py

[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

tests/visualization_tests/test_param_importances.py

[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

tests/visualization_tests/test_pareto_front.py

[error] invalid-argument-type - Argument to function `_get_pareto_front_info` is incorrect: Expected `((FrozenTrial, /) -> Sequence[int | float]) | None`, found `(t: FrozenTrial) -> Unknown | int | float`
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

tests/visualization_tests/test_rank.py

[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

tests/visualization_tests/test_slice.py

[error] not-subscriptable - Cannot subscript object of type `None` with no `__getitem__` method

paasta (https://github.com/yelp/paasta)

paasta_tools/setup_prometheus_adapter_config.py

[error] invalid-return-type - Return type does not match returned value: expected `PrometheusAdapterConfig`, found `dict[str, list[PrometheusAdapterRule | UnspecializedTypeVar]]`

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

pandas/tests/extension/base/methods.py

[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Hashable`
[error] unsupported-operator - Operator `<=` is not supported between two objects of type `Hashable`
[error] unsupported-operator - Operator `+` is not supported between two objects of type `Hashable`
[error] unsupported-operator - Operator `+` is not supported between two objects of type `Hashable`
[error] unsupported-operator - Operator `+` is not supported between two objects of type `Hashable`

pandas/tests/series/methods/test_combine.py

[error] unsupported-operator - Operator `+` is not supported between two objects of type `Hashable`
[error] invalid-argument-type - Argument to function `min` is incorrect: Argument type `Hashable` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`
[error] invalid-argument-type - Argument to function `min` is incorrect: Argument type `Hashable` does not satisfy upper bound `SupportsDunderLT[Any] | SupportsDunderGT[Any]` of type variable `SupportsRichComparisonT`
[error] unsupported-operator - Operator `+` is not supported between two objects of type `Hashable`
[error] unsupported-operator - Operator `+` is not supported between two objects of type `Hashable`

pandas/tests/extension/test_categorical.py

[error] unsupported-operator - Operator `+` is not supported between two objects of type `Hashable`
[error] unsupported-operator - Operator `+` is not supported between two objects of type `Hashable`

pandas/tests/frame/methods/test_map.py

[error] invalid-argument-type - Argument to bound method `map` is incorrect: Expected `(Any, /) -> Any`, found `(x: Any, y) -> Unknown`
[error] invalid-argument-type - Argument to bound method `map` is incorrect: Expected `(Any, /) -> Any`, found `(x: Any, y) -> Any`

pandas/tseries/holiday.py

[error] invalid-return-type - Return type does not match returned value: expected `DatetimeIndex`, found `Index`

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

src/prefect/cli/_transfer_utils.py

[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_work_pool`
[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_work_queue`
[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_deployment`
[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_flow`
[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_block_document`
[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_block_type`
[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_block_schema`
[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_variable`
[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_automation`
[error] unresolved-attribute - Object of type `MigratableProtocol` has no attribute `source_global_concurrency_limit`

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

flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable

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

flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable

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

flaky
(1/10)
[error] invalid-await - `object` is not awaitable

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

flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable

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

flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable

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

flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable

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

flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable
flaky
(1/10)
[error] invalid-await - `object` is not awaitable

src/prefect/utilities/_engine.py

flaky
(1/10)
[error] invalid-return-type - Return type does not match returned value: expected `str`, found `object`

pycryptodome (https://github.com/Legrandin/pycryptodome)

lib/Crypto/SelfTest/Protocol/test_KDF.py

[error] invalid-argument-type - Argument to function `new` is incorrect: Expected `bytes | bytearray | memoryview[int]`, found `int`

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

pydantic/_internal/_mock_val_ser.py

[error] invalid-assignment - Object of type `MockValSer[Unknown]` is not assignable to attribute `validator` of type `SchemaValidator | PluggableSchemaValidator`
[error] invalid-assignment - Object of type `MockValSer[SchemaValidator | PluggableSchemaValidator]` is not assignable to attribute `validator` of type `SchemaValidator | PluggableSchemaValidator`
[error] invalid-assignment - Object of type `MockValSer[Unknown]` is not assignable to attribute `serializer` of type `SchemaSerializer`
[error] invalid-assignment - Object of type `MockValSer[SchemaSerializer]` is not assignable to attribute `serializer` of type `SchemaSerializer`
[error] invalid-assignment - Object of type `MockValSer[Unknown]` is not assignable to attribute `__pydantic_validator__` of type `SchemaValidator | PluggableSchemaValidator`
[error] invalid-assignment - Object of type `MockValSer[SchemaValidator | PluggableSchemaValidator]` is not assignable to attribute `__pydantic_validator__` of type `SchemaValidator | PluggableSchemaValidator`
[error] invalid-assignment - Object of type `MockValSer[Unknown]` is not assignable to attribute `__pydantic_serializer__` of type `SchemaSerializer`
[error] invalid-assignment - Object of type `MockValSer[SchemaSerializer]` is not assignable to attribute `__pydantic_serializer__` of type `SchemaSerializer`

pydantic/main.py

[error] invalid-assignment - Object of type `dict[str, ((model: BaseModel, name: str, val: Any) -> None) | ((model: BaseModel, name: str, val: Any) -> dict[str, Any] | tuple[dict[str, Any], dict[str, Any] | None, set[str]] | Any)]` is not assignable to `Mapping[str, (BaseModel, str, Any, /) -> None]`

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

rotkehlchen/chain/evm/node_inquirer.py

[error] invalid-argument-type - Argument to bound method `get_l1_fee` is incorrect: Expected `Literal[ChainID.OPTIMISM, ChainID.BASE, ChainID.SCROLL]`, found `Literal[ChainID.ETHEREUM, ChainID.OPTIMISM, ChainID.POLYGON_POS, ChainID.ARBITRUM_ONE, ChainID.BASE, ... omitted 5 literals]`

schema_salad (https://github.com/common-workflow-language/schema_salad)

schema_salad/dlang_codegen.py

[error] unsupported-operator - Operator `&` is not supported between two objects of type `Sized`

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

static_frame/test/unit/test_series.py

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

static_frame/test/unit/test_store_zip.py

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

static_frame/test/unit/test_yarn.py

[error] unresolved-attribute - Attribute `size` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `size` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `size` is not defined on `tuple[Any, Any]` in union `Any | tuple[Any, Any]`
[error] unresolved-attribute - Attribute `size` is not defined on `tuple[Any, Any]` in union `@Todo | tuple[Any, Any]`

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

lib/streamlit/watcher/local_sources_watcher.py

[error] invalid-assignment - Object of type `list[((ModuleType, /) -> list[str | None]) | ((m: ModuleType) -> list[Never] | list[str | None])]` is not assignable to `list[(ModuleType, /) -> list[str | None]]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `Iterable[str | None]`, found `object`

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

sympy/core/basic.py

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

sympy/matrices/matrixbase.py

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

sympy/plotting/plot.py

[error] not-subscriptable - Cannot subscript object of type `Basic` with no `__getitem__` method
[error] not-subscriptable - Cannot subscript object of type `Basic` with no `__getitem__` method

sympy/tensor/array/array_derivatives.py

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

vision (https://github.com/pytorch/vision)

test/builtin_dataset_mocks.py

[error] invalid-argument-type - Argument to function `create_image_folder` is incorrect: Expected `(int, /) -> str`, found `(idx: int) -> str | int | Unknown`
[error] invalid-argument-type - Argument to function `create_image_folder` is incorrect: Expected `Sequence[int] | int | ((int, /) -> Sequence[int] | int) | None`, found `(idx: int) -> tuple[Literal[3], str | int | Unknown, str | int | Unknown]`