Ecosystem report

Old: main (merge base) 2fc445f0 New: 27546/merge cfad2db4
Lint Rule Removed Added Changed
Total 45 100 12
unresolved-attribute 34 52 5
invalid-assignment 0 47 0
unused-type-ignore-comment 11 0 0
unsupported-operator 0 0 7
invalid-argument-type 0 1 0
Project Removed Added Changed
Total 45 100 12
scipy non-strict 1 39 4
spack non-strict 16 1 2
sympy non-strict 7 2 3
pip non-strict 8 1 0
dd-trace-py non-strict 0 6 1
manticore non-strict 2 5 0
sockeye strict 0 7 0
graphql-core strict 6 0 0
ignite strict 0 6 0
meson strict 0 5 0
spark strict 0 5 0
mongo-python-driver strict 0 4 0
pandas strict 0 4 0
pwndbg non-strict 0 4 0
scikit-learn strict 0 3 0
static-frame non-strict 3 0 0
pywin32 non-strict 2 0 0
stone non-strict 0 0 2
aiohttp-devtools non-strict 0 1 0
apprise non-strict 0 1 0

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

aiohttp_devtools/runserver/serve.py

[error] invalid-argument-type - Argument to function `len` is incorrect: Expected `Sized`, found `bytes | bytearray | Payload | None`

apprise non-strict (https://github.com/caronc/apprise)

apprise/plugins/telegram.py

[error] invalid-assignment - Cannot assign to a subscript on an object of type `None`

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

cki_lib/retrying.py

[error] unresolved-attribute - Unresolved attribute `failed_count` on type `_Wrapped[(...), object, (*args: object, **kwargs: object), object]`

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

ddtrace/contrib/internal/unittest/patch.py

[error] unresolved-attribute - Unresolved attribute `_datadog_expected_sessions` on type `<class 'CIVisibility'>`.
[error] unresolved-attribute - Unresolved attribute `_datadog_finished_sessions` on type `<class 'CIVisibility'>`.
[error] unresolved-attribute - Unresolved attribute `_datadog_finished_sessions` on type `<class 'CIVisibility'>`.

ddtrace/internal/telemetry/writer.py

[error] unsupported-operator - Operator `>` is not supported between objects of type `float` and `EnvVariable[float]`
[error] unsupported-operator - Operator `>` is not supported between objects of type `float | Unknown` and `EnvVariable[float]`

scripts/ddtrace_module_graph.py

[error] invalid-assignment - Invalid subscript assignment with key of type `str | None` and value of type `int` on object of type `defaultdict[str, int]`
[error] invalid-assignment - Invalid subscript assignment with key of type `tuple[str | None, str | None]` and value of type `int` on object of type `defaultdict[tuple[str, str], int]`

tests/tracer/test_endpoint_config.py

[error] unresolved-attribute - Unresolved attribute `call_count` on type `def mock_getresponse_enabled_after_4_retries(self) -> Unknown`

graphql-core strict (https://github.com/graphql-python/graphql-core)

tests/pyutils/test_inspect.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

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

tests/ignite/metrics/nlp/_pyrouge.py

[error] invalid-assignment - Invalid subscript assignment with key of type `str` and value of type `Unknown` on object of type `list[dict[str, list[Unknown]]]`
[error] invalid-assignment - Invalid subscript assignment with key of type `str` and value of type `Unknown` on object of type `list[dict[str, list[Unknown]]]`
[error] invalid-assignment - Invalid subscript assignment with key of type `str` and value of type `float | Unknown` on object of type `list[dict[str, list[Unknown]]]`
[error] invalid-assignment - Invalid subscript assignment with key of type `str` and value of type `Unknown` on object of type `list[dict[str, list[Unknown]]]`
[error] invalid-assignment - Invalid subscript assignment with key of type `str` and value of type `Unknown` on object of type `list[dict[str, list[Unknown]]]`
[error] invalid-assignment - Invalid subscript assignment with key of type `str` and value of type `float | Unknown` on object of type `list[dict[str, list[Unknown]]]`

manticore non-strict (https://github.com/trailofbits/manticore)

manticore/platforms/decree.py

[error] unresolved-attribute - Unresolved attribute `random` on type `<class 'DecreeEmu'>`.

manticore/platforms/evm.py

[error] unresolved-attribute - Object of type `Self@add_refund` has no attribute `_refund`
[error] unresolved-attribute - Object of type `Self@sub_refund` has no attribute `_refund`

scripts/binaryninja/manticore_viz/__init__.py

[error] invalid-assignment - Invalid subscript assignment with key of type `Literal[0]` and value of type `float` on object of type `list[int]`
[error] invalid-assignment - Invalid subscript assignment with key of type `Literal[0]` and value of type `float` on object of type `list[int]`

tests/native/test_armv7unicorn.py

[error] invalid-assignment - Object of type `Unknown` is not assignable to attribute `STACK` on type `None | Unknown`
[error] invalid-assignment - Object of type `Unknown` is not assignable to attribute `STACK` on type `None | Unknown`

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

mesonbuild/mformat.py

[error] invalid-assignment - Object of type `str` is not assignable to attribute `value` on type `WhitespaceNode | None`
[error] invalid-assignment - Object of type `Unknown` is not assignable to attribute `value` on type `WhitespaceNode | None`
[error] invalid-assignment - Object of type `Unknown` is not assignable to attribute `value` on type `WhitespaceNode | None`
[error] invalid-assignment - Object of type `Unknown` is not assignable to attribute `value` on type `WhitespaceNode | None`
[error] invalid-assignment - Object of type `Unknown` is not assignable to attribute `value` on type `WhitespaceNode | None`

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

pymongo/ssl_support.py

[error] invalid-assignment - Object of type `int | Any` is not assignable to attribute `options` on type `pymongo.pyopenssl_context.SSLContext | ssl.SSLContext`
[error] invalid-assignment - Object of type `int | Any` is not assignable to attribute `options` on type `pymongo.pyopenssl_context.SSLContext | ssl.SSLContext`
[error] invalid-assignment - Object of type `int | Any` is not assignable to attribute `options` on type `pymongo.pyopenssl_context.SSLContext | ssl.SSLContext`
[error] invalid-assignment - Object of type `Any | int` is not assignable to attribute `options` on type `pymongo.pyopenssl_context.SSLContext | ssl.SSLContext`

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

pandas/core/arrays/sparse/array.py

[error] invalid-assignment - Invalid subscript assignment with key of type `ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] | ExtensionArray | ndarray[tuple[Any, ...], dtype[Any]] | Any` and value of type `ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]] | Unknown` on object of type `ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]`

pandas/core/computation/expr.py

[error] unresolved-attribute - Unresolved attribute `unsupported_nodes` on type `type[_T@disallowed]`.

pandas/tests/arithmetic/test_datetime64.py

[error] invalid-assignment - Cannot assign to read-only property `values` on object of type `TimedeltaIndex`: Attempted assignment to `TimedeltaIndex.values` here
[error] invalid-assignment - Cannot assign to read-only property `_values` on object of type `TimedeltaIndex`: Attempted assignment to `TimedeltaIndex._values` here

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

pandera/backends/polars/base.py

[error] invalid-assignment - Invalid subscript assignment with key of type `Unknown | None` and value of type `int` on object of type `defaultdict[str, int]`

pip non-strict (https://github.com/pypa/pip)

src/pip/_vendor/pygments/filters/__init__.py

[error] unresolved-attribute - Object of type `Self@__init__` has no attribute `tabs`
[error] unresolved-attribute - Object of type `Self@__init__` has no attribute `tabs`
[error] unresolved-attribute - Object of type `Self@__init__` has no attribute `newlines`
[error] unresolved-attribute - Object of type `Self@__init__` has no attribute `newlines`
[error] unresolved-attribute - Object of type `Self@filter` has no attribute `tabs`
[error] unresolved-attribute - Object of type `Self@filter` has no attribute `newlines`
[error] unresolved-attribute - Object of type `Self@filter` has no attribute `tabs`
[error] unresolved-attribute - Object of type `Self@filter` has no attribute `newlines`

src/pip/_vendor/urllib3/util/ssltransport.py

[error] unresolved-attribute - Unresolved attribute `_io_refs` on type `socket`

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

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

[error] unresolved-attribute - Unresolved attribute `current_time` on type `def mock_sleep(duration: float) -> CoroutineType[Any, Any, Unknown]`

pwndbg non-strict (https://github.com/pwndbg/pwndbg)

pwndbg/commands/hexdump.py

[error] unresolved-attribute - Unresolved attribute `offset` on type `CommandObj`
[error] unresolved-attribute - Unresolved attribute `offset` on type `CommandObj`

pwndbg/commands/telescope.py

[error] unresolved-attribute - Unresolved attribute `offset` on type `CommandObj`
[error] unresolved-attribute - Unresolved attribute `offset` on type `CommandObj`

pycryptodome non-strict (https://github.com/Legrandin/pycryptodome)

lib/Crypto/SelfTest/loader.py

[error] invalid-assignment - Object of type `list[Unknown]` is not assignable to attribute `others` on type `None | TestVector`

pywin32 non-strict (https://github.com/mhammond/pywin32)

pythonwin/pywin/scintilla/formatter.py

[error] unresolved-attribute - Object of type `Self@RegisterStyle` has no attribute `nextstylenum`
[error] unresolved-attribute - Object of type `Self@RegisterStyle` has no attribute `nextstylenum`

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

rotkehlchen/chain/ethereum/modules/thegraph/accountant.py

[error] invalid-assignment - Invalid subscript assignment with key of type `str | None` and value of type `FVal` on object of type `dict[ChecksumAddress, FVal]`

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

sklearn/decomposition/_lda.py

[error] invalid-assignment - Cannot assign to a subscript on an object of type `None`

sklearn/ensemble/_hist_gradient_boosting/gradient_boosting.py

[error] invalid-assignment - Cannot assign to a subscript on an object of type `None`

sklearn/preprocessing/_polynomial.py

[error] invalid-assignment - Invalid subscript assignment with key of type `tuple[slice[None, None, None], slice[None, Unknown | int, None]]` and value of type `lil_array[float64]` on object of type `lil_array[float64]`

scipy non-strict (https://github.com/scipy/scipy)

scipy/differentiate/tests/test_differentiate.py

[error] unresolved-attribute - Unresolved attribute `nit` on type `def f(xs, js) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `iter` on type `def callback(res) -> Unknown`

scipy/integrate/_ode.py

[error] unresolved-attribute - Unresolved attribute `active_global_handle` on type `type[Self@acquire_new_handle]`.

scipy/integrate/tests/test_tanhsinh.py

[error] unresolved-attribute - Unresolved attribute `ncall` on type `def f(x, p) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `feval` on type `def f(x, p) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `nit` on type `def f(xs, js) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `calls` on type `def f(x) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `feval` on type `def f(x) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `calls` on type `def f(x) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `feval` on type `def f(x) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `iter` on type `def callback(res) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `feval` on type `def f(x, p) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `nfev` on type `def f(x) -> Unknown`

scipy/optimize/_hessian_update_strategy.py

[error] unresolved-attribute - Attribute `dtype` is not defined on `None`, `int`, `float*` in union `None | ndarray[tuple[int, int], dtype[Any]] | float | ndarray[tuple[Any, ...], dtype[Any]]`
[error] unresolved-attribute - Attribute `dtype` is not defined on `None`, `int`, `float*` in union `None | ndarray[tuple[int, int], dtype[Any]] | float | ... omitted 3 union elements`
[error] unresolved-attribute - Attribute `dtype` is not defined on `None`, `int`, `float*` in union `None | ndarray[tuple[int, int], dtype[Any]] | float | ndarray[tuple[Any, ...], dtype[Any]]`
[error] unresolved-attribute - Attribute `dtype` is not defined on `None`, `int`, `float*` in union `None | ndarray[tuple[int, int], dtype[Any]] | float | ... omitted 3 union elements`
[error] unsupported-operator - Operator `*=` is not supported between objects of type `None` and `float* | ndarray[tuple[Any, ...], dtype[Any]]`
[error] unsupported-operator - Operator `*=` is not supported between objects of type `None` and `float* | ndarray[tuple[Any, ...], dtype[Unknown]]`
[error] unsupported-operator - Operator `*=` is not supported between objects of type `None` and `float* | ndarray[tuple[Any, ...], dtype[Any]]`
[error] unsupported-operator - Operator `*=` is not supported between objects of type `None` and `float* | ndarray[tuple[Any, ...], dtype[Unknown]]`

scipy/optimize/_minpack_py.py

[error] unresolved-attribute - Unresolved attribute `nfev` on type `def _wrapped_func(*fargs) -> Unknown`

scipy/optimize/_nonlin.py

[error] invalid-assignment - Cannot assign to a subscript on an object of type `None`

scipy/optimize/_root.py

[error] unresolved-attribute - Unresolved attribute `nfev` on type `def _wrapped_fun(*fargs) -> Unknown`

scipy/optimize/_zeros_py.py

[error] unresolved-attribute - Unresolved attribute `_function_calls` on type `def f_raise(x, *args) -> Unknown`

scipy/optimize/tests/test__differential_evolution.py

[error] unresolved-attribute - Unresolved attribute `nit` on type `def callback(intermediate_result) -> Unknown`

scipy/optimize/tests/test__shgo.py

[error] unresolved-attribute - Unresolved attribute `nfev` on type `def fun(x) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `nfev` on type `def fun(x) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `nfev` on type `def fun(x) -> Unknown`

scipy/optimize/tests/test_bracket.py

[error] unresolved-attribute - Unresolved attribute `count` on type `def f(x) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `f_evals` on type `def f(...) -> Unknown`
[error] invalid-assignment - Object of type `Unknown` is not assignable to attribute `count` on type `(def f(x, c) -> Unknown) | (def f(x) -> Unknown)`
[error] unresolved-attribute - Unresolved attribute `count` on type `def f(x, a, b) -> Unknown`

scipy/optimize/tests/test_chandrupatla.py

[error] unresolved-attribute - Unresolved attribute `f_evals` on type `def f(...) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `iter` on type `def callback(res) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `f_evals` on type `def f(...) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `iter` on type `def callback(res) -> Unknown`

scipy/optimize/tests/test_optimize.py

[error] unresolved-attribute - Unresolved attribute `i` on type `def callback() -> Unknown`

scipy/optimize/tests/test_zeros.py

[error] unresolved-attribute - Unresolved attribute `_count` on type `def f(x) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `calls` on type `def f(x) -> Unknown`

scipy/signal/_spectral_py.py

[error] invalid-assignment - Cannot assign to a subscript on an object of type `Literal[0]`
[error] invalid-assignment - Cannot assign to a subscript on an object of type `Literal[0]`

scipy/special/_orthogonal.py

[error] unresolved-attribute - Object of type `Self@_scale` has no attribute `_coeffs`

scipy/stats/tests/test_continued_fraction.py

[error] unresolved-attribute - Unresolved attribute `nfev` on type `def a(n, x) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `nfev` on type `def b(n, x) -> Unknown`

scipy/stats/tests/test_resampling.py

[error] unresolved-attribute - Unresolved attribute `counter` on type `def statistic(x, axis) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `counter` on type `def test(x, axis) -> Unknown`
[error] unresolved-attribute - Unresolved attribute `counter` on type `def statistic(x, y, axis) -> Unknown`

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

sockeye/data_io.py

[error] invalid-assignment - Invalid subscript assignment with key of type `int | None` and value of type `int | Unknown` on object of type `list[int]`

sockeye/training.py

[error] invalid-assignment - Object of type `int` is not assignable to attribute `epoch` on type `None | TrainState`
[error] invalid-assignment - Object of type `int` is not assignable to attribute `checkpoint` on type `None | TrainState`
[error] invalid-assignment - Object of type `int` is not assignable to attribute `batches` on type `None | TrainState`
[error] invalid-assignment - Object of type `int` is not assignable to attribute `samples` on type `None | TrainState`
[error] invalid-assignment - Object of type `int` is not assignable to attribute `updates` on type `None | TrainState`
[error] invalid-assignment - Object of type `int` is not assignable to attribute `num_not_improved` on type `None | TrainState`

spack non-strict (https://github.com/spack/spack)

lib/spack/spack/vendor/macholib/MachO.py

[error] unsupported-operator - Operator `+` is not supported between objects of type `None | Unknown` and `None | int`
[error] unsupported-operator - Operator `+` is not supported between objects of type `None | Unknown` and `None | int | Unknown`
[error] unsupported-operator - Operator `+` is not supported between objects of type `None | Unknown` and `None | int`
[error] unsupported-operator - Operator `+` is not supported between objects of type `None | Unknown` and `None | int | Unknown`
[error] invalid-assignment - Object of type `Unknown` is not assignable to attribute `sizeofcmds` on type `None | Unknown`

lib/spack/spack/vendor/pyrsistent/_pvector.py

[error] unresolved-attribute - Unresolved attribute `_count` on type `Self@__new__`
[error] unresolved-attribute - Object of type `Self@__new__` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@__len__` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@__getitem__` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@__eq__` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@set` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@set` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@set` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@set` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@set` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@_create_new_root` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@append` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@append` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@_mutating_fill_tail` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@_mutating_extend` has no attribute `_count`
[error] unresolved-attribute - Object of type `Self@_push_tail` has no attribute `_count`

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

python/pyspark/pandas/tests/computation/test_describe.py

[error] unresolved-attribute - Unresolved attribute `A` on type `DataFrame`
[error] unresolved-attribute - Unresolved attribute `A` on type `DataFrame`
[error] unresolved-attribute - Unresolved attribute `A` on type `DataFrame`

python/pyspark/pandas/tests/series/test_string_ops_basic.py

[error] invalid-assignment - Cannot assign to a subscript on an object of type `Index`
[error] invalid-assignment - Cannot assign to a subscript on an object of type `Series[Unknown]`

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

static_frame/core/type_blocks.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

steam.py non-strict (https://github.com/Gobot1234/steam.py)

steam/chat.py

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

stone non-strict (https://github.com/dropbox/stone)

stone/frontend/lexer.py

[error] unsupported-operator - Operator `>` is not supported between objects of type `None | int` and `Literal[0]`
[error] unsupported-operator - Operator `>` is not supported between objects of type `None | int | Unknown` and `Literal[0]`
[error] unsupported-operator - Operator `*` is not supported between objects of type `list[Unknown]` and `None | int`
[error] unsupported-operator - Operator `*` is not supported between objects of type `list[Unknown]` and `None | int | Unknown`

sympy non-strict (https://github.com/sympy/sympy)

sympy/functions/elementary/trigonometric.py

[error] unresolved-attribute - Object of type `float` has no attribute `subs`
[error] unresolved-attribute - Attribute `subs` is not defined on `int`, `float*` in union `Any | float`
[error] unresolved-attribute - Object of type `float` has no attribute `subs`
[error] unresolved-attribute - Attribute `subs` is not defined on `int`, `float*` in union `Any | float`

sympy/geometry/polygon.py

[error] unresolved-attribute - Object of type `Self@rotation` has no attribute `_rot`
[error] unresolved-attribute - Object of type `Self@spin` has no attribute `_rot`
[error] unresolved-attribute - Object of type `Self@rotate` has no attribute `_rot`
[error] unresolved-attribute - Object of type `Self@vertices` has no attribute `_rot`
[error] unresolved-attribute - Object of type `Self@args` has no attribute `_rot`

sympy/logic/boolalg.py

[error] invalid-assignment - Cannot assign to a subscript on an object of type `int`

sympy/matrices/repmatrix.py

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

sympy/physics/continuum_mechanics/column.py

[error] unresolved-attribute - Object of type `int` has no attribute `subs`
[error] unresolved-attribute - Attribute `subs` is not defined on `int` in union `int | Expr | Unknown`

sympy/printing/pretty/pretty.py

[error] invalid-assignment - Object of type `Unknown` is not assignable to attribute `baseline` on type `str | prettyForm`

urllib3 strict (https://github.com/urllib3/urllib3)

src/urllib3/util/ssltransport.py

[error] unresolved-attribute - Unresolved attribute `_io_refs` on type `socket`