Ecosystem report

Old: main (merge base) 6a2e6944 New: 26384/merge 44953a2a
Lint Rule Removed Added Changed
Total 5 66 20
invalid-argument-type 1 29 3
no-matching-overload 0 13 0
unresolved-attribute 0 11 2
invalid-assignment 0 2 8
unsupported-operator 0 4 4
not-subscriptable 0 4 0
type-assertion-failure 1 0 2
invalid-return-type 1 1 0
not-iterable 0 1 1
call-non-callable 1 0 0
invalid-yield 0 1 0
unused-type-ignore-comment 1 0 0
Project Removed Added Changed
Total 5 66 20
sympy 0 12 2
scipy 0 12 0
pylint 0 10 0
jax 1 6 0
scikit-learn 0 4 2
egglog-python 1 1 2
mongo-python-driver 0 4 0
spark 0 0 4
core 0 0 3
cwltool 0 3 0
pytest 0 0 3
schemathesis 0 3 0
beartype 0 2 0
bokeh 0 0 2
pandas 0 2 0
tornado 0 2 0
comtypes 0 1 0
freqtrade 0 0 1
hydra-zen 0 0 1
manticore 0 1 0

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

beartype/bite/collection/infercollectionitems.py

[error] invalid-argument-type - Argument to function `make_hint_pep484604_union` is incorrect: Expected `Sequence[TypeForm[Any]]`, found `tuple[object, ...]`
[error] invalid-argument-type - Argument to function `make_hint_pep484604_union` is incorrect: Expected `Sequence[TypeForm[Any]]`, found `tuple[object, ...]`

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

src/bokeh/core/property/wrappers.py

[error] invalid-argument-type - Method `__getitem__` of type `Overload[(index: int, /) -> Never, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Never]]` cannot be called with key of type `tuple[@Todo, ...]` on object of type `MutableSequence[Never]`
[error] invalid-argument-type - Method `__getitem__` of type `Overload[(index: int, /) -> Never, (index: slice[int | None, int | None, int | None], /) -> MutableSequence[Never]]` cannot be called with key of type `tuple[int | slice[Any, Any, Any], ...]` on object of type `MutableSequence[Never]`
[error] invalid-assignment - Invalid subscript assignment with key of type `tuple[@Todo, ...]` and value of type `Unknown` on object of type `MutableSequence[Never]`
[error] invalid-assignment - Invalid subscript assignment with key of type `tuple[int | slice[Any, Any, Any], ...]` and value of type `Unknown` on object of type `MutableSequence[Never]`

comtypes (https://github.com/enthought/comtypes)

comtypes/_vtbl.py

[error] invalid-yield - Yield type `type` does not match annotated yield type `type[IUnknown]`

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

homeassistant/components/tasmota/light.py

[error] unsupported-operator - Operator `in` is not supported between objects of type `Literal[ColorMode.HS]` and `set[ColorMode] | None | set[Unknown]`
[error] unsupported-operator - Operator `in` is not supported between objects of type `Literal[ColorMode.HS]` and `set[ColorMode] | None`
[error] unsupported-operator - Operator `in` is not supported between objects of type `Literal[ColorMode.WHITE]` and `set[ColorMode] | None | set[Unknown]`
[error] unsupported-operator - Operator `in` is not supported between objects of type `Literal[ColorMode.WHITE]` and `set[ColorMode] | None`
[error] unsupported-operator - Operator `in` is not supported between objects of type `Literal[ColorMode.COLOR_TEMP]` and `set[ColorMode] | None | set[Unknown]`
[error] unsupported-operator - Operator `in` is not supported between objects of type `Literal[ColorMode.COLOR_TEMP]` and `set[ColorMode] | None`

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

cwltool/main.py

[error] no-matching-overload - No overload of bound method `str.join` matches arguments

cwltool/validate_js.py

[error] invalid-argument-type - Method `__getitem__` of type `bound method Top[MutableMapping[Unknown, Unknown]].__getitem__(key: Never, /) -> object` cannot be called with key of type `str` on object of type `Top[MutableMapping[Unknown, Unknown]]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `str` on object of type `str`

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

python/egglog/egraph_state.py

[error] type-assertion-failure - Type `Unknown & ~Literal["delete"] & ~Literal["subsume"]` is not equivalent to `Never`
[error] type-assertion-failure - Type `Unknown & ~None` is not equivalent to `Never`
[error] type-assertion-failure - Type `Value` is not equivalent to `Never`

python/egglog/pretty.py

[error] type-assertion-failure - Type `Unknown & ~None` is not equivalent to `Never`
[error] type-assertion-failure - Type `Value` is not equivalent to `Never`

python/egglog/thunk.py

[error] invalid-return-type - Return type does not match returned value: expected `T@__call__`, found `TypeVar`

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

freqtrade/optimize/analysis/lookahead.py

[error] invalid-argument-type - Argument to function `LookaheadAnalysis.get_result` is incorrect: Expected `DataFrame`, found `dict[Unknown, Unknown]`
[error] invalid-argument-type - Argument to function `LookaheadAnalysis.get_result` is incorrect: Expected `DataFrame`, found `dict[str, DataFrame]`

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

src/hydra_zen/structured_configs/_implementations.py

[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `tuple[str, type, Field[Any]]`, found `tuple[str | @Todo, ...]`
[error] invalid-argument-type - Argument to bound method `list.append` is incorrect: Expected `tuple[str, type, Field[Any]]`, found `tuple[str | Any, ...]`

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

jax/_src/pallas/einshape.py

[error] invalid-argument-type - Argument to function `_is_tile_preserving` is incorrect: Expected `tuple[int, int] | None`, found `tuple[int | None, ...]`

jax/_src/pallas/fuser/block_spec.py

[error] invalid-argument-type - Argument to bound method `NDIndexer.make_trivial_indexer` is incorrect: Expected `tuple[int, ...]`, found `object`
[error] not-iterable - Object of type `_T_co@zip` is not iterable
[error] invalid-argument-type - Argument to constructor `zip.__new__` is incorrect: Expected `Iterable[Unknown]`, found `object`

jax/_src/pallas/mosaic_gpu/core.py

[error] unsupported-operator - Operator `+` is not supported between objects of type `int | Unknown` and `int | Array | Any | Slice`

jax/_src/pallas/mosaic_gpu/lowering.py

[error] invalid-argument-type - Argument to function `_lower_as_gpu_kernel` is incorrect: Expected `tuple[int, int, int]`, found `tuple[int, ...]`

jax/experimental/mosaic/gpu/constraints.py

[error] invalid-return-type - Function can implicitly return `None`, which is not assignable to return type `Variable | RegisterLayout | TMEMLayout | ... omitted 6 union elements`

manticore (https://github.com/trailofbits/manticore)

tests/other/test_smtlibv2.py

[error] invalid-argument-type - Argument to bound method `set.add` is incorrect: Expected `<class 'Expression'> | <class 'BoolOperation'> | <class 'BitVecOperation'> | ... omitted 4 union elements`, found `type`

mongo-python-driver (https://github.com/mongodb/mongo-python-driver)

pymongo/asynchronous/mongo_client.py

[error] invalid-argument-type - Argument to bound method `AsyncMongoClient._init_based_on_options` is incorrect: Expected `Collection[tuple[str, int]]`, found `set[Unknown | tuple[str, int | None]] & ~AlwaysFalsy`
[error] invalid-argument-type - Argument to bound method `AsyncMongoClient._init_based_on_options` is incorrect: Expected `Collection[tuple[str, int]]`, found `set[Unknown | tuple[str, int | None]] & ~AlwaysFalsy`

pymongo/synchronous/mongo_client.py

[error] invalid-argument-type - Argument to bound method `MongoClient._init_based_on_options` is incorrect: Expected `Collection[tuple[str, int]]`, found `set[Unknown | tuple[str, int | None]] & ~AlwaysFalsy`
[error] invalid-argument-type - Argument to bound method `MongoClient._init_based_on_options` is incorrect: Expected `Collection[tuple[str, int]]`, found `set[Unknown | tuple[str, int | None]] & ~AlwaysFalsy`

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

pandas/core/internals/construction.py

[error] invalid-argument-type - Argument to function `construct_1d_arraylike_from_scalar` is incorrect: Expected `str | bytes | date | ... omitted 10 union elements`, found `object`
[error] invalid-assignment - Invalid subscript assignment with key of type `int` and value of type `ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]]` on object of type `list[int | float]`

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

pwndbg/enhance.py

[error] no-matching-overload - No overload of bound method `str.join` matches arguments

pylint (https://github.com/pycqa/pylint)

pylint/checkers/match_statements_checker.py

[error] unresolved-attribute - Attribute `value` is not defined on `NodeNG` in union `NodeNG | Proxy`

pylint/checkers/classes/class_checker.py

[error] unresolved-attribute - Attribute `name` is not defined on `NodeNG` in union `NodeNG | UninferableBase | Proxy`

pylint/checkers/refactoring/recommendation_checker.py

[error] unresolved-attribute - Attribute `name` is not defined on `Attribute` in union `Attribute | Name`
[error] unresolved-attribute - Attribute `attrname` is not defined on `Name` in union `Attribute | Name`

pylint/checkers/refactoring/refactoring_checker.py

[error] unresolved-attribute - Object of type `NodeNG | None` has no attribute `value`
[error] unresolved-attribute - Object of type `NodeNG` has no attribute `name`
[error] unresolved-attribute - Attribute `name` is not defined on `NodeNG` in union `NodeNG | Proxy`
[error] unresolved-attribute - Attribute `name` is not defined on `NodeNG` in union `NodeNG | Proxy`

pylint/checkers/utils.py

[error] invalid-argument-type - Argument to function `has_known_bases` is incorrect: Expected `ClassDef`, found `(ClassDef & BaseInstance) | (FunctionDef & BaseInstance) | (Lambda & BaseInstance) | (UnboundMethod & BaseInstance)`
[error] invalid-argument-type - Argument is incorrect: Expected `NodeNG`, found `(ClassDef & BaseInstance) | (FunctionDef & BaseInstance) | (Lambda & BaseInstance) | (UnboundMethod & BaseInstance)`

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

pyppeteer/launcher.py

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

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

src/_pytest/assertion/rewrite.py

[error] invalid-assignment - Invalid subscript assignment with key of type `Unknown` and value of type `expr` on object of type `dict[str, str]`
[error] invalid-assignment - Invalid subscript assignment with key of type `str` and value of type `expr` on object of type `dict[str, str]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Unknown` and value of type `NamedExpr` on object of type `dict[str, str]`
[error] invalid-assignment - Invalid subscript assignment with key of type `str` and value of type `NamedExpr` on object of type `dict[str, str]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Unknown` and value of type `NamedExpr` on object of type `dict[str, str]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Any & str` and value of type `NamedExpr` on object of type `dict[str, str]`

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

rotkehlchen/api/services/transactions.py

[error] invalid-argument-type - Argument to bound method `list.extend` is incorrect: Expected `Iterable[Literal[SupportedBlockchain.ETHEREUM, SupportedBlockchain.OPTIMISM, SupportedBlockchain.POLYGON_POS, SupportedBlockchain.ARBITRUM_ONE, SupportedBlockchain.BASE, ... omitted 6 literals]]`, found `list[SupportedBlockchain]`

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

src/schema_salad/typescript_codegen.py

[error] invalid-argument-type - Argument is incorrect: Expected `bool`, found `Any | str | Literal[False]`

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

src/schemathesis/specs/openapi/negative/value_channel.py

[error] invalid-argument-type - Method `__getitem__` of type `Overload[(i: SupportsIndex, /) -> Divergent, (s: slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> list[Divergent]]` cannot be called with key of type `str` on object of type `list[Divergent]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method dict[str, Divergent].__getitem__(key: str, /) -> Divergent` cannot be called with key of type `int` on object of type `dict[str, Divergent]`
[error] invalid-argument-type - Method `__getitem__` of type `bound method str.__getitem__(key: SupportsIndex | slice[SupportsIndex | None, SupportsIndex | None, SupportsIndex | None], /) -> str` cannot be called with key of type `str` on object of type `str`

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

sklearn/linear_model/_logistic.py

[error] no-matching-overload - No overload of function `tile` matches arguments

sklearn/linear_model/tests/test_logistic.py

[error] unresolved-attribute - Attribute `shape` is not defined on `list[Unknown]`, `int`, `float` in union `list[Unknown] | ndarray[tuple[Any, ...], dtype[Unknown]] | int | float`
[error] unresolved-attribute - Attribute `shape` is not defined on `list[Any]`, `int`, `float` in union `list[Any] | ndarray[tuple[Any, ...], dtype[Unknown]] | int | float`
[error] unresolved-attribute - Attribute `shape` is not defined on `list[Unknown]`, `int`, `float` in union `list[Unknown] | ndarray[tuple[Any, ...], dtype[Unknown]] | int | float`
[error] unresolved-attribute - Attribute `shape` is not defined on `list[Unknown | str | None | int | float]`, `int`, `float` in union `list[Unknown | str | None | int | float] | Unknown | ndarray[tuple[Any, ...], dtype[Any]] | int | float`
[error] no-matching-overload - No overload of function `assert_allclose` matches arguments
[error] no-matching-overload - No overload of function `assert_allclose` matches arguments

sklearn/metrics/tests/test_common.py

[error] invalid-assignment - Object of type `str` is not assignable to attribute `__name__` on type `(Unknown & Top[partial[Unknown]]) | partial[(...) -> Unknown] | (((...) -> Unknown) & Top[partial[Unknown]])`

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

scipy/conftest.py

[error] invalid-argument-type - Argument to function `filterwarnings` is incorrect: Expected `bool`, found `<class 'RuntimeWarning'> | str | <class 'DeprecationWarning'> | ... omitted 3 union elements`
[error] invalid-argument-type - Argument to function `filterwarnings` is incorrect: Expected `int`, found `<class 'RuntimeWarning'> | str | <class 'DeprecationWarning'> | ... omitted 3 union elements`
[error] invalid-argument-type - Argument to function `filterwarnings` is incorrect: Expected `str`, found `<class 'RuntimeWarning'> | str | <class 'DeprecationWarning'> | ... omitted 3 union elements`
[error] invalid-argument-type - Argument to function `filterwarnings` is incorrect: Expected `str`, found `<class 'RuntimeWarning'> | str | <class 'DeprecationWarning'> | ... omitted 3 union elements`
[error] invalid-argument-type - Argument to function `filterwarnings` is incorrect: Expected `type[Warning]`, found `<class 'RuntimeWarning'> | str | <class 'DeprecationWarning'> | ... omitted 3 union elements`

scipy/spatial/tests/test_distance.py

[error] no-matching-overload - No overload of function `cdist` matches arguments
[error] no-matching-overload - No overload of function `cdist` matches arguments
[error] no-matching-overload - No overload of function `cdist` matches arguments
[error] no-matching-overload - No overload of function `cdist` matches arguments
[error] no-matching-overload - No overload of function `pdist` matches arguments
[error] no-matching-overload - No overload of function `pdist` matches arguments
[error] no-matching-overload - No overload of function `pdist` matches arguments

spark (https://github.com/apache/spark)

python/pyspark/sql/connect/readwriter.py

[error] invalid-assignment - Object of type `list[str] | @Todo` is not assignable to `tuple[str | None, ...]`
[error] invalid-assignment - Object of type `list[str] | tuple[str, ...]` is not assignable to `tuple[str | None, ...]`
[error] invalid-assignment - Object of type `list[str] | @Todo` is not assignable to `tuple[str | None, ...]`
[error] invalid-assignment - Object of type `list[str] | tuple[str, ...]` is not assignable to `tuple[str | None, ...]`

python/pyspark/sql/readwriter.py

[error] invalid-assignment - Object of type `list[str] | @Todo` is not assignable to `tuple[str | None, ...]`
[error] invalid-assignment - Object of type `list[str] | tuple[str, ...]` is not assignable to `tuple[str | None, ...]`
[error] invalid-assignment - Object of type `list[str] | @Todo` is not assignable to `tuple[str | None, ...]`
[error] invalid-assignment - Object of type `list[str] | tuple[str, ...]` is not assignable to `tuple[str | None, ...]`

steam.py (https://github.com/Gobot1234/steam.py)

steam/chat.py

flaky
(1/10)
[warning] possibly-missing-attribute - Attribute `reactions` may be missing on object of type `ChatMessageT@Chat`

strawberry (https://github.com/strawberry-graphql/strawberry)

strawberry/cli/__init__.py

[error] call-non-callable - Object of type `<module 'strawberry.cli.app'>` is not callable

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

sympy/functions/special/gamma_functions.py

[error] unsupported-operator - Operator `+` is not supported between objects of type `Basic` and `Literal[1]`

sympy/geometry/ellipse.py

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

sympy/logic/boolalg.py

[error] invalid-argument-type - Argument to constructor `Or.__new__` is incorrect: Expected `Boolean | bool`, found `Basic`

sympy/matrices/expressions/kronecker.py

[error] unresolved-attribute - Object of type `Basic` has no attribute `rows`
[error] unresolved-attribute - Object of type `Basic` has no attribute `cols`

sympy/plotting/series.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/series/order.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
[error] no-matching-overload - No overload of `dict.__init__` matches arguments

sympy/simplify/radsimp.py

[error] unresolved-attribute - Attribute `base` is not defined on `Expr` in union `Expr | Unknown`
[error] not-iterable - Object of type `set[Unknown] | Basic` may not be iterable
[error] not-iterable - Object of type `set[Expr] | Basic` may not be iterable

sympy/simplify/simplify.py

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

tornado (https://github.com/tornadoweb/tornado)

tornado/routing.py

[error] invalid-argument-type - Argument to `Rule.__init__` is incorrect: Expected `dict[str, Any] | None`, found `object`
[error] invalid-argument-type - Argument to `Rule.__init__` is incorrect: Expected `str | None`, found `object`

typeshed-stats (https://github.com/AlexWaygood/typeshed-stats)

src/typeshed_stats/gather.py

[error] invalid-argument-type - Argument to function `sorted` is incorrect: Expected `Iterable[str]`, found `Top[list[Unknown]]`