Ecosystem report

Old: main (merge base) c7e3dceb New: 26359/merge 75d41b3f
Lint Rule Removed Added Changed
Total 3 42 12
invalid-argument-type 0 19 1
no-matching-overload 0 11 0
unresolved-attribute 0 9 2
invalid-assignment 0 2 3
type-assertion-failure 1 0 2
unsupported-operator 0 0 3
invalid-return-type 1 1 0
not-iterable 0 0 1
unused-type-ignore-comment 1 0 0
Project Removed Added Changed
Total 3 42 12
scipy 0 12 0
pylint 0 10 0
scikit-learn 0 4 2
egglog-python 1 1 2
mongo-python-driver 0 4 0
core 0 0 3
cwltool 0 3 0
pytest 0 0 3
beartype 0 2 0
pandas 0 2 0
sympy 0 1 1
freqtrade 0 0 1
jax 1 0 0
manticore 0 1 0
pyppeteer 1 0 0
schema_salad 0 1 0
typeshed-stats 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, ...]`

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]`

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

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]`

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]`

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]`

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

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

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

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]]`