Ecosystem report

Old: main (merge base) 533da8fc New: 24197/merge b3c14f92
Lint Rule Removed Added Changed
Total 50 0 4
invalid-assignment 27 0 3
unsupported-operator 10 0 0
invalid-argument-type 8 0 0
invalid-return-type 3 0 1
no-matching-overload 1 0 0
not-iterable 1 0 0
Project Removed Added Changed
Total 50 0 4
jax 15 0 0
pandas 7 0 2
mypy 6 0 0
scikit-learn 4 0 0
ignite 3 0 0
sympy 3 0 0
vision 3 0 0
dedupe 2 0 0
egglog-python 2 0 0
meson 2 0 0
rotki 2 0 0
core 1 0 0
prefect flaky 0 0 1
sockeye 0 0 1
scikit-build-core flaky 0 0 0

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

homeassistant/components/osoenergy/water_heater.py

[error] invalid-assignment - Object of type `list[int | float]` is not assignable to `list[JsonValueType]`

dedupe (https://github.com/dedupeio/dedupe)

dedupe/labeler.py

[error] invalid-assignment - Object of type `list[int]` is not assignable to `list[Literal[0, 1]]`
[error] invalid-assignment - Object of type `list[int]` is not assignable to `list[Literal[0, 1]]`

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

python/egglog/pretty.py

[error] invalid-assignment - Object of type `list[UnboundVarDecl]` is not assignable to `list[DummyDecl | UnboundVarDecl | LetRefDecl | ... omitted 6 union elements]`
[error] invalid-assignment - Object of type `list[UnboundVarDecl]` is not assignable to `list[DummyDecl | UnboundVarDecl | LetRefDecl | ... omitted 6 union elements]`

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

ignite/handlers/param_scheduler.py

[error] invalid-assignment - Object of type `list[int]` is not assignable to `int | float | list[int | float]`
[error] invalid-assignment - Cannot assign to a subscript on an object of type `float`
[error] invalid-assignment - Cannot assign to a subscript on an object of type `int`

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

jax/experimental/jet.py

[error] invalid-argument-type - Argument to function `square` is incorrect: Expected `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`, found `None | Unknown | Array`
[error] invalid-argument-type - Argument to function `exp` is incorrect: Expected `Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements`, found `None | Unknown | Array`
[error] unsupported-operator - Operator `*` is not supported between objects of type `int` and `None | Unknown | Array`
[error] unsupported-operator - Operator `*` is not supported between two objects of type `None | Unknown | Array`
[error] unsupported-operator - Operator `*` is not supported between objects of type `int` and `None | Unknown | Array`
[error] unsupported-operator - Operator `*` is not supported between objects of type `int` and `None | Unknown | Array`
[error] unsupported-operator - Operator `*` is not supported between objects of type `int` and `None | Unknown | Array`
[error] unsupported-operator - Operator `-` is not supported between objects of type `Literal[1]` and `None | Unknown | Array`
[error] unsupported-operator - Operator `-` is not supported between objects of type `Literal[1]` and `None | Unknown | Array`
[error] unsupported-operator - Operator `*` is not supported between two objects of type `None | Unknown | Array`
[error] unsupported-operator - Operator `*` is not supported between objects of type `int` and `None | Unknown | Array`

jax/_src/export/_export.py

[error] invalid-assignment - Object of type `list[UnspecifiedValue]` is not assignable to `list[Sharding | UnspecifiedValue]`

jax/_src/numpy/lax_numpy.py

[error] invalid-assignment - Object of type `list[int]` is not assignable to `list[Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | ... omitted 4 union elements]`

jax/_src/numpy/vectorize.py

[error] invalid-assignment - Object of type `list[tuple[()]]` is not assignable to `list[tuple[str, ...]]`

jax/_src/shard_map.py

[error] invalid-assignment - Object of type `list[NoFail]` is not assignable to `list[ShapedArray | NoFail]`

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

mesonbuild/backend/ninjabackend.py

[error] invalid-assignment - Object of type `list[str] | list[Unknown]` is not assignable to `list[str | NinjaCommandArg]`
[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `list[NinjaCommandArg | str]`, found `list[str]`

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

mypyc/ir/rtypes.py

[error] invalid-argument-type - Argument to bound method `__init__` is incorrect: Expected `list[RType]`, found `list[RStruct]`

mypyc/primitives/generic_ops.py

[error] invalid-argument-type - Argument to function `function_op` is incorrect: Expected `list[RType]`, found `list[RPrimitive]`

mypy/checker.py

[error] invalid-argument-type - Argument to bound method `check_method_call_by_name` is incorrect: Expected `list[Expression]`, found `list[TempNode]`
[error] invalid-argument-type - Argument to bound method `check_method_call_by_name` is incorrect: Expected `list[Expression]`, found `list[TempNode]`

mypy/checkexpr.py

[error] invalid-return-type - Return type does not match returned value: expected `list[Type]`, found `list[AnyType]`

mypy/fastparse.py

[error] invalid-assignment - Object of type `list[AnyType]` is not assignable to `list[Type | None]`

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

pandas/tests/arrays/masked/test_arithmetic.py

[error] unsupported-operator - Operator `+=` is not supported between objects of type `list[int]` and `list[int | float]`

pandas/core/indexes/multi.py

[error] invalid-assignment - Object of type `list[list[Unknown]]` is not assignable to `list[Sequence[Hashable]]`

pandas/core/indexing.py

[error] invalid-assignment - Object of type `list[slice[Any, Any, Any]]` is not assignable to `list[slice[Any, Any, Any] | ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]]`

pandas/core/internals/managers.py

[error] invalid-return-type - Return type does not match returned value: expected `list[ndarray[tuple[Any, ...], dtype[Any]]]`, found `list[None | Unknown]`
[error] invalid-return-type - Return type does not match returned value: expected `list[ndarray[tuple[Any, ...], dtype[Any]]]`, found `list[ndarray[tuple[Any, ...], dtype[Any]] | None]`

pandas/io/excel/_odfreader.py

[error] invalid-argument-type - Argument to bound method `extend` is incorrect: Expected `Iterable[list[str | bytes | date | ... omitted 11 union elements]]`, found `list[list[str]]`

pandas/io/formats/html.py

[error] invalid-assignment - Object of type `list[str]` is not assignable to `list[Hashable]`
[error] invalid-assignment - Object of type `list[str]` is not assignable to `list[Hashable]`

pandas/io/pytables.py

[error] invalid-assignment - Object of type `list[slice[Any, Any, Any]]` is not assignable to `list[slice[Any, Any, Any] | Index]`

pandas/io/sql.py

[error] invalid-assignment - Object of type `list[None | Unknown]` is not assignable to `list[ndarray[tuple[Any, ...], dtype[Any]]]`
[error] invalid-assignment - Object of type `list[ndarray[tuple[Any, ...], dtype[Any]] | None]` is not assignable to `list[ndarray[tuple[Any, ...], dtype[Any]]]`

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

src/prefect/futures.py

[error] invalid-assignment - Object of type `list[None | Unknown]` is not assignable to `list[R@PrefectFutureList]`
[error] invalid-assignment - Object of type `list[R@PrefectFutureList | None]` is not assignable to `list[R@PrefectFutureList]`

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

rotkehlchen/chain/evm/decoding/quickswap/v3/decoder.py

[error] invalid-return-type - Return type does not match returned value: expected `dict[str, list[tuple[int, (...) -> Unknown]]]`, found `dict[str, list[tuple[int, (...) -> Unknown]] | list[tuple[int, bound method Self@post_decoding_rules._v3_router_post_decoding(transaction: EvmTransaction, decoded_events: list[EvmEvent], all_logs: list[EvmTxReceiptLog]) -> list[EvmEvent]]]]`

rotkehlchen/chain/evm/decoding/quickswap/v4/decoder.py

[error] invalid-return-type - Return type does not match returned value: expected `dict[str, list[tuple[int, (...) -> Unknown]]]`, found `dict[str, list[tuple[int, (...) -> Unknown]] | list[tuple[int, bound method Self@post_decoding_rules._router_post_decoding(transaction: EvmTransaction, decoded_events: list[EvmEvent], all_logs: list[EvmTxReceiptLog]) -> list[EvmEvent]]]]`

scikit-learn (https://github.com/scikit-learn/scikit-learn)

sklearn/neural_network/tests/test_mlp.py

[error] invalid-assignment - Invalid subscript assignment with key of type `Literal[0]` and value of type `ndarray[tuple[Any, ...], dtype[Any]]` on object of type `list[int]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Literal[1]` and value of type `ndarray[tuple[Any, ...], dtype[Any]]` on object of type `list[int]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Literal[0]` and value of type `ndarray[tuple[Any, ...], dtype[Any]]` on object of type `list[int]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Literal[1]` and value of type `ndarray[tuple[Any, ...], dtype[Any]]` on object of type `list[int]`

sockeye (https://github.com/awslabs/sockeye)

sockeye/model.py

[error] invalid-assignment - Object of type `list[None | Unknown]` is not assignable to `list[int] | None`
[error] invalid-assignment - Object of type `list[int | None]` is not assignable to `list[int] | None`

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

sympy/polys/puiseux.py

[error] invalid-assignment - Object of type `Unknown | list[int]` is not assignable to `list[MPQ | int]`

sympy/matrices/matrixbase.py

[error] invalid-assignment - Object of type `list[int]` is not assignable to `list[int | MatrixBase]`
[error] invalid-assignment - Object of type `list[list[Expr] | list[Zero]]` is not assignable to `list[list[Expr]]`

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

torchvision/transforms/v2/_container.py

[error] invalid-assignment - Object of type `list[int]` is not assignable to `list[int | float] | None`
[error] no-matching-overload - No overload of function `sum` matches arguments
[error] not-iterable - Object of type `list[int | float] | None` may not be iterable