Ecosystem report

Old: main (merge base) e201faef New: 25788/merge d45f4b6a
Lint Rule Removed Added Changed
Total 1 0 21
unsupported-operator 0 0 12
invalid-argument-type 1 0 8
type-assertion-failure 0 0 1
Project Removed Added Changed
Total 1 0 21
scipy 0 0 6
pandas 0 0 5
sympy 1 0 4
core 0 0 1
hydpy 0 0 1
paasta 0 0 1
pwndbg 0 0 1
scikit-learn 0 0 1
xarray 0 0 1

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

homeassistant/components/lutron/light.py

[error] invalid-argument-type - Argument to function `to_lutron_level` is incorrect: Expected `int`, found `Any | (int & ~Literal[0]) | None`
[error] invalid-argument-type - Argument to function `to_lutron_level` is incorrect: Expected `int`, found `Any | (int & ~Literal[0] & ~Literal[False]) | None`

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

hydpy/core/modeltools.py

[error] type-assertion-failure - Type `Any & ~Literal[0] & ~Literal[1]` is not equivalent to `Never`
[error] type-assertion-failure - Type `Any & ~Literal[0] & ~Literal[False] & ~Literal[1] & ~Literal[True]` is not equivalent to `Never`

paasta (https://github.com/yelp/paasta)

paasta_tools/kubernetes_tools.py

[error] invalid-argument-type - Argument to bound method `KubernetesDeploymentConfig.get_autoscaling_scaling_policy` is incorrect: Expected `int`, found `(int & ~Literal[0]) | None`
[error] invalid-argument-type - Argument to bound method `KubernetesDeploymentConfig.get_autoscaling_scaling_policy` is incorrect: Expected `int`, found `(int & ~Literal[0] & ~Literal[False]) | None`

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

pandas/core/arrays/datetimes.py

[error] unsupported-operator - Operator `-` is not supported between objects of type `(int & ~Literal[1]) | None` and `Literal[1]`
[error] unsupported-operator - Operator `-` is not supported between objects of type `(int & ~Literal[1] & ~Literal[True]) | None` and `Literal[1]`
[error] unsupported-operator - Operator `-` is not supported between objects of type `(int & ~Literal[1]) | None` and `Literal[1]`
[error] unsupported-operator - Operator `-` is not supported between objects of type `(int & ~Literal[1] & ~Literal[True]) | None` and `Literal[1]`

pandas/core/frame.py

[error] invalid-argument-type - Argument to bound method `DataFrame.shift` is incorrect: Expected `int | Sequence[int]`, found `(int & ~Literal[0]) | integer[Any]`
[error] invalid-argument-type - Argument to bound method `DataFrame.shift` is incorrect: Expected `int | Sequence[int]`, found `(int & ~Literal[0] & ~Literal[False]) | integer[Any]`

pandas/core/reshape/tile.py

[error] invalid-argument-type - Argument to function `abs` is incorrect: Expected `SupportsAbs[Unknown]`, found `~Literal[0]`
[error] invalid-argument-type - Argument to function `abs` is incorrect: Expected `SupportsAbs[Unknown]`, found `~Literal[0] & ~Literal[False]`
[error] invalid-argument-type - Argument to function `abs` is incorrect: Expected `SupportsAbs[Unknown]`, found `~Literal[0]`
[error] invalid-argument-type - Argument to function `abs` is incorrect: Expected `SupportsAbs[Unknown]`, found `~Literal[0] & ~Literal[False]`

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

pwndbg/aglib/onegadget.py

[error] invalid-argument-type - Argument to function `string` is incorrect: Expected `int`, found `(int & ~Literal[0]) | None`
[error] invalid-argument-type - Argument to function `string` is incorrect: Expected `int`, found `(int & ~Literal[0] & ~Literal[False]) | None`

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

sklearn/preprocessing/_polynomial.py

[error] unsupported-operator - Operator `+` is not supported between objects of type `~Literal[0]` and `Literal[1]`
[error] unsupported-operator - Operator `+` is not supported between objects of type `~Literal[0] & ~Literal[False]` and `Literal[1]`

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

scipy/interpolate/_polyint.py

[error] unsupported-operator - Operator `+` is not supported between objects of type `int` and `(Unknown & ~Literal[0]) | None`
[error] unsupported-operator - Operator `+` is not supported between objects of type `int` and `(Unknown & ~Literal[0] & ~Literal[False]) | None`
[error] unsupported-operator - Operator `+` is not supported between objects of type `int` and `(Unknown & ~Literal[0]) | None`
[error] unsupported-operator - Operator `+` is not supported between objects of type `int` and `(Unknown & ~Literal[0] & ~Literal[False]) | None`
[error] unsupported-operator - Operator `+` is not supported between objects of type `int` and `(Unknown & ~Literal[0]) | None`
[error] unsupported-operator - Operator `+` is not supported between objects of type `int` and `(Unknown & ~Literal[0] & ~Literal[False]) | None`
[error] unsupported-operator - Operator `+` is not supported between objects of type `int` and `(Unknown & ~Literal[0]) | None`
[error] unsupported-operator - Operator `+` is not supported between objects of type `int` and `(Unknown & ~Literal[0] & ~Literal[False]) | None`

scipy/stats/_distribution_infrastructure.py

[error] unsupported-operator - Operator `>` is not supported between objects of type `generic[Any] | (int & ~Literal[1]) | float | ... omitted 4 union elements` and `Literal[1]`
[error] unsupported-operator - Operator `>` is not supported between objects of type `generic[Any] | (int & ~Literal[1] & ~Literal[True]) | float | ... omitted 4 union elements` and `Literal[1]`

subprojects/array_api_extra/src/array_api_extra/_lib/_funcs.py

[error] invalid-argument-type - Argument to function `log2` is incorrect: Expected `SupportsFloat | SupportsIndex`, found `(int & ~Literal[0]) | None`
[error] invalid-argument-type - Argument to function `log2` is incorrect: Expected `SupportsFloat | SupportsIndex`, found `(int & ~Literal[0] & ~Literal[False]) | None`

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

sympy/combinatorics/prufer.py

[error] unsupported-operator - Operator `-=` is not supported between objects of type `None` and `None | (Unknown & ~Literal[0])`
[error] unsupported-operator - Operator `-=` is not supported between objects of type `None` and `None | (Unknown & ~Literal[0] & ~Literal[False])`

sympy/ntheory/tests/test_factor_.py

[error] unsupported-operator - Operator `%` is not supported between objects of type `~AlwaysFalsy & ~Literal[1]` and `Literal[2]`
[error] unsupported-operator - Operator `%` is not supported between objects of type `~AlwaysFalsy & ~Literal[1] & ~Literal[True]` and `Literal[2]`
[error] unsupported-operator - Operator `//` is not supported between objects of type `~AlwaysFalsy & ~Literal[1]` and `Literal[2]`
[error] unsupported-operator - Operator `//` is not supported between objects of type `~AlwaysFalsy & ~Literal[1] & ~Literal[True]` and `Literal[2]`

sympy/polys/polytools.py

[error] invalid-argument-type - Argument to bound method `Poly.degree` is incorrect: Expected `int`, found `Expr`

sympy/solvers/diophantine/diophantine.py

[error] invalid-argument-type - Argument to function `_can_do_sum_of_squares` is incorrect: Expected `int`, found `(int & ~Literal[0]) | MPZ`
[error] invalid-argument-type - Argument to function `_can_do_sum_of_squares` is incorrect: Expected `int`, found `(int & ~Literal[0] & ~Literal[False]) | MPZ`

xarray (https://github.com/pydata/xarray)

xarray/plot/utils.py

[error] unsupported-operator - Operator `-` is not supported between objects of type `Hashable & ~Literal[1]` and `Literal[1]`
[error] unsupported-operator - Operator `-` is not supported between objects of type `Hashable & ~Literal[1] & ~Literal[True]` and `Literal[1]`