Ecosystem report

Old: main (merge base) 9459dc02 New: 28045/merge db41ab23
Lint Rule Removed Added Changed
Total 9 102 13
unsound-return-statement 1 90 6
invalid-return-type 0 4 3
unresolved-attribute 0 4 2
unsound-assignment 3 1 1
invalid-argument-type 1 1 1
invalid-assignment 2 0 0
possibly-unresolved-reference 0 2 0
unresolved-import 1 0 0
unused-type-ignore-comment 1 0 0
Project Removed Added Changed
Total 9 102 13
core strict 1 41 2
dd-trace-py non-strict 0 8 0
jax non-strict 2 4 0
mongo-python-driver strict 0 6 0
pandas strict 0 5 1
prefect strict 0 6 0
sympy non-strict 0 4 1
openlibrary non-strict 0 3 1
pydantic strict 0 4 0
spark strict 1 1 2
freqtrade non-strict 0 0 3
pwndbg non-strict 2 0 1
psycopg non-strict 0 2 0
pytest non-strict 2 0 0
pywin32 non-strict 0 2 0
setuptools strict 0 2 0
spack non-strict 0 1 1
aioredis non-strict 0 1 0
apprise non-strict 0 1 0
cloud-init strict 0 1 0

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

aioredis/lock.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`

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

apprise/persistent_store.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

cloud-init strict (https://github.com/canonical/cloud-init)

cloudinit/sources/DataSourceWSL.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

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

homeassistant/components/fritzbox/cover.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/miele/fan.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`

homeassistant/components/nextcloud/binary_sensor.py

[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`

homeassistant/components/template/cover.py

[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool | None`

homeassistant/components/vallox/switch.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/yardian/binary_sensor.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

homeassistant/components/aladdin_connect/cover.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/alexa/state_report.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Any` is not a subtype of `bool`

homeassistant/components/alexa_devices/media_player.py

[warning] unsound-return-statement - Unsound return statement: `(Unknown & ~AlwaysFalsy) | (bool & Unknown)` is not a subtype of `bool | None`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/elmax/cover.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/fibaro/cover.py

[warning] unsound-assignment - Unsound assignment: `Unknown` is not a subtype of `bool | None`

homeassistant/components/fints/sensor.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`

homeassistant/components/fressnapf_tracker/light.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

homeassistant/components/hassio/coordinator.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

homeassistant/components/homematicip_cloud/binary_sensor.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/homematicip_cloud/cover.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/homematicip_cloud/light.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`

homeassistant/components/husqvarna_automower/button.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`

homeassistant/components/ihc/light.py

[warning] unsound-return-statement - Unsound return statement: `bool | Unknown` is not a subtype of `bool`

homeassistant/components/iron_os/coordinator.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

homeassistant/components/liebherr/cover.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/liebherr/light.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/lutron_caseta/cover.py

[warning] unsound-return-statement - Unsound return statement: `(Unknown & ~AlwaysFalsy) | (bool & Unknown)` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

homeassistant/components/motion_blinds/cover.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/notion/binary_sensor.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/overkiz/water_heater/atlantic_domestic_hot_water_production_v2_ce_flat_c2_io_component.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

homeassistant/components/pglab/cover.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/sensoterra/sensor.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

homeassistant/components/smartthings/light.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool | None`
[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool | None`

homeassistant/components/synology_dsm/sensor.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `StateType`

homeassistant/components/teslemetry/update.py

[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`

homeassistant/components/yolink/binary_sensor.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/components/yolink/valve.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

homeassistant/components/zwave_me/cover.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool | None`

homeassistant/helpers/config_validation.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

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

ddtrace/appsec/_metrics.py

[warning] unsound-return-statement - Unsound return statement: `Literal[True] | Any` is not a subtype of `bool`

ddtrace/_trace/sampling_rule.py

[warning] unsound-return-statement - Unsound return statement: `bool | (Unknown & ~AlwaysTruthy)` is not a subtype of `bool`

ddtrace/appsec/_api_security/_normalized_route.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Any` is not a subtype of `bool`

ddtrace/debugging/_probe/remoteconfig.py

[warning] unsound-return-statement - Unsound return statement: `Any | Literal[True]` is not a subtype of `bool`

tests/crashtracker/utils.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

tests/llmobs/test_pydantic_evaluators.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

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

dragonchain/lib/dto/btc.py

[warning] unsound-return-statement - Unsound return statement: `Any | Literal[False]` is not a subtype of `bool`

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

freqtrade/plugins/pairlist/PerformanceFilter.py

[warning] unsound-assignment - Unsound assignment: `list[Any] | Unknown` is not a subtype of `list[str]`
[warning] unsound-assignment - Unsound assignment: `list[Any]` is not a subtype of `list[str]`
[warning] unsound-return-statement - Unsound return statement: `list[Any] | Unknown` is not a subtype of `list[str]`
[warning] unsound-return-statement - Unsound return statement: `list[Any]` is not a subtype of `list[str]`

freqtrade/strategy/interface.py

[error] invalid-return-type - Return type does not match returned value: expected `tuple[bool, bool, str | None]`, found `tuple[Series[bool] | Literal[False], Series[bool] | Literal[False], None]`
[error] invalid-return-type - Return type does not match returned value: expected `tuple[bool, bool, str | None]`, found `tuple[Series[bool] | Literal[False], Series[bool] | Literal[False], (Series[Any] & str) | None]`

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

ignite/engine/events.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

jax non-strict (https://github.com/google/jax)

jax/_src/tpu/linalg/eigh.py

[warning] unsound-assignment - Unsound assignment: `Divergent` is not a subtype of `Array | None`

jax/_src/core.py

[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`

jax/_src/tpu/linalg/qdwh.py

[warning] unsound-assignment - Unsound assignment: `Divergent` is not a subtype of `Array | None`

jax/experimental/mosaic/gpu/utils.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`

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

bson/objectid.py

[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`

openlibrary non-strict (https://github.com/internetarchive/openlibrary)

openlibrary/core/lending.py

[warning] unsound-return-statement - Unsound return statement: `(Unknown & ~AlwaysTruthy) | (bool & Unknown)` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

openlibrary/plugins/upstream/addbook.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

openlibrary/utils/request_context.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

operator non-strict (https://github.com/canonical/operator)

ops/jujuversion.py

[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`

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

tests/visualization_tests/test_rank.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

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

pandas/core/dtypes/astype.py

[warning] unsound-return-statement - Unsound return statement: `Any | bool` is not a subtype of `bool`

pandas/core/dtypes/dtypes.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

pandas/core/indexes/interval.py

[error] unresolved-attribute - Attribute `sum` is not defined on `Index` in union `Index | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]] | Any`
[error] invalid-argument-type - Argument to function `maybe_booleans_to_slice` is incorrect: Expected `ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]]`, found `Index | ndarray[tuple[Any, ...], Unknown] | Any`

pandas/core/indexes/timedeltas.py

[error] invalid-return-type - Return type does not match returned value: expected `Day | Tick | None`, found `BaseOffset`
[error] invalid-return-type - Return type does not match returned value: expected `Day | Tick | None`, found `BaseOffset & ~Tick`

pandas/core/indexing.py

[warning] unsound-return-statement - Unsound return statement: `bool | Any` is not a subtype of `bool`

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

pandera/backends/xarray/container.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

porcupine non-strict (https://github.com/Akuli/porcupine)

porcupine/plugins/highlight/pygments_highlighter.py

[warning] unsound-return-statement - Unsound return statement: `(Any & ~AlwaysTruthy) | bool` is not a subtype of `bool`

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

src/integrations/prefect-aws/prefect_aws/workers/ecs_worker.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

src/prefect/_internal/schemas/bases.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

src/prefect/results.py

[warning] unsound-return-statement - Unsound return statement: `Unknown | Literal[True]` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Unknown | Literal[True]` is not a subtype of `bool`

src/prefect/runner/storage.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

src/prefect/server/utilities/schemas/bases.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

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

tests/test_cursor_common.py

[error] unresolved-attribute - Module `psycopg` has no member `ProgrammingError`

tests/test_cursor_common_async.py

[error] unresolved-attribute - Module `psycopg` has no member `ProgrammingError`

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

pwndbg/aglib/disasm/assistant.py

[error] invalid-assignment - Object of type `None` is not assignable to `Emulator`
[error] invalid-assignment - Object of type `None` is not assignable to `Emulator`

pwndbg/aglib/kernel/nftables.py

[warning] unsound-return-statement - Unsound return statement: `(Unknown & ~AlwaysFalsy) | bool` is not a subtype of `bool`
[warning] unsound-return-statement - Unsound return statement: `Unknown | bool` is not a subtype of `bool`

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

pydantic/networks.py

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

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

src/_pytest/_io/terminalwriter.py

[error] unresolved-import - Cannot resolve imported module `colorama`
[warning] unsound-assignment - Unsound assignment: `Unknown` is not a subtype of `TextIO | None`

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

com/win32com/test/GenTestScripts.py

[warning] possibly-unresolved-reference - Name `name` used when possibly not defined
[warning] possibly-unresolved-reference - Name `name` used when possibly not defined

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

rotkehlchen/tasks/bridges.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Any` is not a subtype of `bool`

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

src/schemathesis/specs/openapi/stateful/dependencies/__init__.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

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

scipy/stats/_mstats_basic.py

[error] unresolved-attribute - Object of type `Literal[False]` has no attribute `filled`
[error] unresolved-attribute - Object of type `Literal[False] | ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]` has no attribute `filled`

setuptools strict (https://github.com/pypa/setuptools)

setuptools/_vendor/wheel/_bdist_wheel.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

setuptools/command/bdist_wheel.py

[warning] unsound-return-statement - Unsound return statement: `Any` is not a subtype of `bool`

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

lib/spack/spack/cmd/info.py

[error] invalid-return-type - Return type does not match returned value: expected `SupportsRichComparison`, found `tuple[bool & Any, Any & ~AlwaysFalsy]`
[error] invalid-return-type - Return type does not match returned value: expected `SupportsRichComparison`, found `tuple[Any, Any & ~AlwaysFalsy]`

lib/spack/spack/environment/environment.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`

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

python/pyspark/pandas/base.py

[error] unresolved-attribute - Object of type `IndexOpsLike@notnull` has no attribute `rename`
[error] unresolved-attribute - Object of type `IndexOpsLike@notnull & ~MultiIndex` has no attribute `rename`

python/pyspark/pandas/indexing.py

[warning] unsound-return-statement - Unsound return statement: `tuple[bool & Unknown, None, Literal[0]]` is not a subtype of `tuple[Column | None, int | None, int | None]`
[warning] unsound-return-statement - Unsound return statement: `tuple[Unknown, None, Literal[0]]` is not a subtype of `tuple[Column | None, int | None, int | None]`

python/pyspark/sql/connect/expressions.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Any` is not a subtype of `bool`

python/pyspark/streaming/context.py

[error] invalid-argument-type - Argument to bound method `SparkContext.parallelize` is incorrect: Expected `Iterable[Unknown]`, found `RDD[T@queueStream]`

sphinx strict (https://github.com/sphinx-doc/sphinx)

sphinx/ext/autodoc/_legacy_class_based/_documenters.py

[warning] unsound-return-statement - Unsound return statement: `Literal[True] | Any` is not a subtype of `bool`

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

static_frame/core/index.py

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

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

sympy/integrals/manualintegrate.py

[error] invalid-argument-type - Argument to bound method `list.extend` is incorrect: Expected `Iterable[tuple[type, Expr, ((...) -> Unknown) | None, tuple[Unknown, ...]]]`, found `tuple[tuple[<class 'Mul'>, Expr, None, <class 'EiRule'>], tuple[<class 'Mul'>, Expr, None, <class 'CiRule'>], tuple[<class 'Mul'>, Expr, None, <class 'ChiRule'>], tuple[<class 'Mul'>, Expr, None, <class 'SiRule'>], tuple[<class 'Mul'>, Expr, None, <class 'ShiRule'>], tuple[<class 'Pow'>, Expr, None, <class 'LiRule'>], tuple[<class 'exp'>, exp, None, <class 'ErfRule'>], tuple[<class 'Mul'>, Expr, (a, b, y) -> (Unknown & ~AlwaysTruthy) | (bool & Unknown), <class 'OwensTRule'>], tuple[<class 'sin'>, sin, None, <class 'FresnelSRule'>], tuple[<class 'cos'>, cos, None, <class 'FresnelCRule'>], tuple[<class 'Mul'>, Expr, None, <class 'UpperGammaRule'>], tuple[<class 'Mul'>, Expr, None, <class 'PolylogRule'>], tuple[<class 'Pow'>, Unknown, (a, d) -> Unknown, <class 'EllipticFRule'>], tuple[<class 'Pow'>, Unknown, (a, d) -> Unknown, <class 'EllipticERule'>]]`
[error] invalid-argument-type - Argument to bound method `list.extend` is incorrect: Expected `Iterable[tuple[type, Expr, ((...) -> Unknown) | None, tuple[Unknown, ...]]]`, found `tuple[tuple[<class 'Mul'>, Expr, None, <class 'EiRule'>], tuple[<class 'Mul'>, Expr, None, <class 'CiRule'>], tuple[<class 'Mul'>, Expr, None, <class 'ChiRule'>], tuple[<class 'Mul'>, Expr, None, <class 'SiRule'>], tuple[<class 'Mul'>, Expr, None, <class 'ShiRule'>], tuple[<class 'Pow'>, Expr, None, <class 'LiRule'>], tuple[<class 'exp'>, exp, None, <class 'ErfRule'>], tuple[<class 'Mul'>, Expr, (a, b, y) -> Unknown, <class 'OwensTRule'>], tuple[<class 'sin'>, sin, None, <class 'FresnelSRule'>], tuple[<class 'cos'>, cos, None, <class 'FresnelCRule'>], tuple[<class 'Mul'>, Expr, None, <class 'UpperGammaRule'>], tuple[<class 'Mul'>, Expr, None, <class 'PolylogRule'>], tuple[<class 'Pow'>, Unknown, (a, d) -> Unknown, <class 'EllipticFRule'>], tuple[<class 'Pow'>, Unknown, (a, d) -> Unknown, <class 'EllipticERule'>]]`

sympy/ntheory/primetest.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

sympy/polys/domains/gaussiandomains.py

[warning] unsound-return-statement - Unsound return statement: `Unknown` is not a subtype of `bool`

sympy/polys/rings.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`

sympy/simplify/fu.py

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

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

zerver/lib/zulip_update_announcements.py

[warning] unsound-return-statement - Unsound return statement: `Literal[False] | Unknown` is not a subtype of `bool`