Properly check for equivalent return types when determining whether overload resolution is ambiguous#2685
Properly check for equivalent return types when determining whether overload resolution is ambiguous#2685rchen152 wants to merge 3 commits intofacebook:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
172ef47 to
a7b964c
Compare
…verload resolution is ambiguous (facebook#2685) Summary: Fixes facebook#2552. Differential Revision: D95512431
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
a7b964c to
73b40b1
Compare
…verload resolution is ambiguous (facebook#2685) Summary: Fixes facebook#2552. Differential Revision: D95512431
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…verload resolution is ambiguous (facebook#2685) Summary: Fixes facebook#2552. Differential Revision: D95512431
73b40b1 to
cb0fc70
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…verload resolution is ambiguous (facebook#2685) Summary: Fixes facebook#2552. Differential Revision: D95512431
Summary: Previously, we tried to use the hint during overload selection but would redo calls without the hint if we encountered errors. This diff reworks `call_overloads` to do overload selection without using the hint at all. The hint is used at the very end to produce a better return type after an overload has been selected. This is easier to follow and does less unnecessary work. Differential Revision: D95908767
…verload resolution is ambiguous (facebook#2685) Summary: This diff fixes a user-reported issue in Pyrefly's overload resolution, where we accidentally considered non-equivalent types equivalent and therefore used the return type of the first matched overload rather than `Any` for ambiguous calls. I don't think this diff is land-able on its own, due to the number of assert_type tests in numpy and scipy-stubs it breaks. I've put it up mostly so that we can see the difference in behavior between this diff and the next one, which proposes an alternate way of resolving ambiguous overload calls. Fixes facebook#2552. Differential Revision: D95512431
cb0fc70 to
cb3ddab
Compare
…verload resolution is ambiguous (facebook#2685) Summary: This diff fixes a user-reported issue in Pyrefly's overload resolution, where we accidentally considered non-equivalent types equivalent and therefore used the return type of the first matched overload rather than `Any` for ambiguous calls. I'm hesitant to land this diff on its own, due to the number of assert_type tests in numpy and scipy-stubs it breaks. The next diff contains a proposal for a (non-spec-compliant) alternate way of resolving ambiguous calls that reduces the number of assert_type failures. Fixes facebook#2552. Differential Revision: D95512431
…verload resolution is ambiguous (facebook#2685) Summary: This diff fixes a user-reported issue in Pyrefly's overload resolution, where we accidentally considered non-equivalent types equivalent and therefore used the return type of the first matched overload rather than `Any` for ambiguous calls. I'm hesitant to land this diff on its own, due to the number of assert_type tests in numpy and scipy-stubs it breaks. The next diff contains a proposal for a (non-spec-compliant) alternate way of resolving ambiguous calls that reduces the number of assert_type failures. Pull Request resolved: facebook#2685 Fixes facebook#2552. Differential Revision: D95512431
cb3ddab to
f3e93e2
Compare
|
Diff from mypy_primer, showing the effect of this PR on open source code: spack (https://github.com/spack/spack)
- ERROR lib/spack/spack/build_environment.py:613:31-44: Argument `Unknown | None` is not assignable to parameter `name` with type `Path | str` in function `spack.util.executable.Executable.__init__` [bad-argument-type]
- ERROR lib/spack/spack/filesystem_view.py:580:28-584:10: No matching overload found for function `posixpath.join` called with arguments: (str, str, Any | None) [no-matching-overload]
- ERROR lib/spack/spack/main.py:323:9-23: Class member `SpackArgumentParser.add_subparsers` overrides parent class `ArgumentParser` in an inconsistent manner [bad-override]
- ERROR lib/spack/spack/mixins.py:54:29-39: Object of class `NoneType` has no attribute `prefix` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:54:78-88: Object of class `NoneType` has no attribute `prefix` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:63:19-27: Object of class `NoneType` has no attribute `spec` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:64:41-49: Object of class `NoneType` has no attribute `spec` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:66:21-29: Object of class `NoneType` has no attribute `spec` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:67:42-50: Object of class `NoneType` has no attribute `spec` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:69:25-33: Object of class `NoneType` has no attribute `spec` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:70:41-49: Object of class `NoneType` has no attribute `spec` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:71:42-50: Object of class `NoneType` has no attribute `spec` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:104:37-45: Object of class `NoneType` has no attribute `spec` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:106:28-36: Object of class `NoneType` has no attribute `spec` [missing-attribute]
- ERROR lib/spack/spack/mixins.py:117:12-24: Object of class `NoneType` has no attribute `compiler` [missing-attribute]
- ERROR lib/spack/spack/test/relocate.py:39:26-32: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR lib/spack/spack/util/ctest_log_parser.py:351:17-34: `str | Any` is not assignable to attribute `source_file` with type `tuple[Unknown | None]` [bad-assignment]
- ERROR lib/spack/spack/util/ctest_log_parser.py:351:36-56: `str | Any` is not assignable to attribute `source_line_no` with type `tuple[Unknown | None]` [bad-assignment]
parso (https://github.com/davidhalter/parso)
- ERROR parso/python/prefix.py:84:19-30: Object of class `NoneType` has no attribute `group` [missing-attribute]
- ERROR parso/python/prefix.py:85:17-28: Object of class `NoneType` has no attribute `group` [missing-attribute]
- ERROR parso/python/prefix.py:96:17-26: Object of class `NoneType` has no attribute `end` [missing-attribute]
+ ERROR parso/python/tokenize.py:588:68-76: Index `1` out of range for string with 1 elements [bad-index]
kornia (https://github.com/kornia/kornia)
+ ERROR kornia/augmentation/presets/ada.py:200:25-60: No matching overload found for function `max` called with arguments: (Literal[0], float) [no-matching-overload]
beartype (https://github.com/beartype/beartype)
- ERROR beartype/_check/convert/_reduce/_pep/redpep484612646.py:323:13-25: Argument `HintPep646692UnpackedType | Iota | TypeVar | Unknown | None` is not assignable to parameter `hint` with type `TypeVar` in function `beartype._util.hint.pep.proposal.pep484.pep484typevar.get_hint_pep484_typevar_bounded_constraints_or_none` [bad-argument-type]
+ ERROR beartype/_check/convert/_reduce/_pep/redpep484612646.py:323:13-25: Argument `HintPep646692UnpackedType | Iota | TypeVar | Unknown` is not assignable to parameter `hint` with type `TypeVar` in function `beartype._util.hint.pep.proposal.pep484.pep484typevar.get_hint_pep484_typevar_bounded_constraints_or_none` [bad-argument-type]
dd-trace-py (https://github.com/DataDog/dd-trace-py)
- ERROR ddtrace/appsec/_utils.py:187:16-43: Returned type `Any | None` is not assignable to declared return type `int | str` [bad-return]
- ERROR ddtrace/contrib/internal/unittest/patch.py:650:25-37: Object of class `NoneType` has no attribute `trace` [missing-attribute]
- ERROR ddtrace/contrib/internal/unittest/patch.py:692:24-42: Object of class `NoneType` has no attribute `_start_span` [missing-attribute]
- ERROR ddtrace/contrib/internal/unittest/patch.py:736:23-41: Object of class `NoneType` has no attribute `_start_span` [missing-attribute]
- ERROR ddtrace/contrib/internal/unittest/patch.py:772:12-30: Object of class `NoneType` has no attribute `_start_span` [missing-attribute]
- ERROR ddtrace/internal/ci_visibility/recorder.py:943:16-115: Returned type `str | Any | None` is not assignable to declared return type `str` [bad-return]
- ERROR ddtrace/internal/coverage/instrumentation_py3_11.py:391:55-67: Argument `Unknown | None` is not assignable to parameter `end` with type `Instruction` in function `Branch.__init__` [bad-argument-type]
- ERROR ddtrace/internal/coverage/instrumentation_py3_11.py:392:9-29: Object of class `NoneType` has no attribute `targets` [missing-attribute]
- ERROR ddtrace/internal/sampling.py:174:85-99: Argument `Any | None` is not assignable to parameter `max_per_second` with type `int` in function `SpanSamplingRule.__init__` [bad-argument-type]
- ERROR ddtrace/llmobs/_integrations/langchain.py:847:16-72: Returned type `tuple[tuple[Unknown, Unknown, Unknown | None], str]` is not assignable to declared return type `tuple[tuple[int, int, int], str | None]` [bad-return]
- ERROR ddtrace/llmobs/_integrations/utils.py:314:94-101: Type `None` is not iterable [not-iterable]
pydantic (https://github.com/pydantic/pydantic)
- ERROR pydantic/_internal/_generate_schema.py:320:23-72: `None` is not subscriptable [unsupported-operation]
freqtrade (https://github.com/freqtrade/freqtrade)
- ERROR freqtrade/exchange/binance.py:92:20-95:14: Returned type `Any | None` is not assignable to declared return type `str` [bad-return]
- ERROR freqtrade/exchange/exchange.py:2964:21-34: Object of class `list` has no attribute `update` [missing-attribute]
- ERROR freqtrade/loggers/__init__.py:141:28-99: `Literal['/dev/log'] | tuple[Unknown, int] | Unknown` is not assignable to TypedDict key with type `str` [bad-typed-dict-key]
- ERROR freqtrade/loggers/__init__.py:180:33-49: `int` is not assignable to TypedDict key with type `str` [bad-typed-dict-key]
- ERROR freqtrade/loggers/__init__.py:181:36-38: `Literal[10]` is not assignable to TypedDict key with type `str` [bad-typed-dict-key]
- ERROR freqtrade/loggers/__init__.py:186:27-64: Object of class `bool` has no attribute `values`
- Object of class `int` has no attribute `values` [missing-attribute]
- ERROR freqtrade/optimize/hyperopt/hyperopt_auto.py:61:20-61: Returned type `Any | None` is not assignable to declared return type `(...) -> Unknown` [bad-return]
- ERROR freqtrade/plugins/pairlist/VolatilityFilter.py:146:13-27: Object of class `ndarray` has no attribute `fillna` [missing-attribute]
- ERROR freqtrade/plugins/pairlist/VolatilityFilter.py:148:33-48: Object of class `ndarray` has no attribute `rolling` [missing-attribute]
ibis (https://github.com/ibis-project/ibis)
- ERROR ibis/backends/sql/compilers/postgres.py:355:16-19: Expected a callable, got `None` [not-callable]
- ERROR ibis/legacy/udf/vectorized.py:38:12-46: Returned type `dict[@_, @_]` is not assignable to declared return type `tuple[Unknown, ...]` [bad-return]
+ ERROR ibis/legacy/udf/vectorized.py:38:12-46: Returned type `dict[str, @_]` is not assignable to declared return type `tuple[Unknown, ...]` [bad-return]
aioredis (https://github.com/aio-libs/aioredis)
- ERROR aioredis/client.py:164:31-51: Cannot set item in `dict[str, str]` [unsupported-operation]
scrapy (https://github.com/scrapy/scrapy)
- ERROR scrapy/core/http2/protocol.py:207:30-209:14: Argument `Any | None` is not assignable to parameter `download_maxsize` with type `int` in function `scrapy.core.http2.stream.Stream.__init__` [bad-argument-type]
- ERROR scrapy/core/http2/protocol.py:210:31-212:14: Argument `Any | None` is not assignable to parameter `download_warnsize` with type `int` in function `scrapy.core.http2.stream.Stream.__init__` [bad-argument-type]
+ ERROR scrapy/extensions/httpcache.py:210:23-42: No matching overload found for function `max` called with arguments: (Literal[0], float | int) [no-matching-overload]
- ERROR scrapy/statscollectors.py:78:31-74: No matching overload found for function `max` called with arguments: (Unknown | None, Any) [no-matching-overload]
- ERROR scrapy/statscollectors.py:81:31-74: No matching overload found for function `min` called with arguments: (Unknown | None, Any) [no-matching-overload]
- ERROR tests/test_proxy_connect.py:95:37-82: Cannot set item in `_Environ[str]` [unsupported-operation]
comtypes (https://github.com/enthought/comtypes)
- ERROR comtypes/_meta.py:16:14-33: Object of class `_Pointer` has no attribute `QueryInterface` [missing-attribute]
starlette (https://github.com/encode/starlette)
- ERROR starlette/requests.py:124:20-33: Object of class `NoneType` has no attribute `endswith` [missing-attribute]
- ERROR starlette/requests.py:125:17-28: `+=` is not supported between `None` and `Literal['/']` [unsupported-operation]
zulip (https://github.com/zulip/zulip)
- ERROR zerver/lib/message_cache.py:389:32-86: Argument `Any | None` is not assignable to parameter `rendering_realm_id` with type `int` in function `MessageDict.build_message_dict` [bad-argument-type]
- ERROR zerver/management/commands/backup.py:128:25-132:26: Argument `_TemporaryFileWrapper[bytes]` is not assignable to parameter `cm` with type `AbstractContextManager[_TemporaryFileWrapper[str]]` in function `contextlib._BaseExitStack.enter_context` [bad-argument-type]
- ERROR zerver/middleware.py:494:66-73: Argument `Any | None` is not assignable to parameter `urlconf` with type `str` in function `django.conf.urls.i18n.is_language_prefix_patterns_used` [bad-argument-type]
hydpy (https://github.com/hydpy-dev/hydpy)
- ERROR hydpy/models/conv/conv_model.py:394:41-55: Argument `ndarray[tuple[Any, ...], dtype[Unknown]]` is not assignable to parameter `double` with type `float` in function `hydpy.cythons.modelutils.isnan` [bad-argument-type]
pandas (https://github.com/pandas-dev/pandas)
- ERROR pandas/core/_numba/kernels/mean_.py:111:21-31: Argument `float | ndarray` is not assignable to parameter `prev_value` with type `float` in function `add_mean` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/mean_.py:136:21-31: Argument `float | ndarray` is not assignable to parameter `prev_value` with type `float` in function `add_mean` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/sum_.py:209:13-17: Argument `ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]` is not assignable to parameter `nobs` with type `int` in function `add_sum` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/sum_.py:212:13-39: Argument `ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]` is not assignable to parameter `num_consecutive_same_value` with type `int` in function `add_sum` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/var_.py:120:21-31: Argument `float | ndarray` is not assignable to parameter `prev_value` with type `float` in function `add_var` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/var_.py:145:21-31: Argument `float | ndarray` is not assignable to parameter `prev_value` with type `float` in function `add_var` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/var_.py:217:13-17: Argument `ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]` is not assignable to parameter `nobs` with type `int` in function `add_var` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/var_.py:218:13-19: Argument `ndarray` is not assignable to parameter `mean_x` with type `float` in function `add_var` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/var_.py:219:13-20: Argument `ndarray` is not assignable to parameter `ssqdm_x` with type `float` in function `add_var` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/var_.py:220:13-29: Argument `ndarray` is not assignable to parameter `compensation` with type `float` in function `add_var` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/var_.py:221:13-39: Argument `ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]` is not assignable to parameter `num_consecutive_same_value` with type `int` in function `add_var` [bad-argument-type]
- ERROR pandas/core/_numba/kernels/var_.py:222:13-23: Argument `ndarray` is not assignable to parameter `prev_value` with type `float` in function `add_var` [bad-argument-type]
- ERROR pandas/core/apply.py:592:63-67: Argument `DataFrame | Series | ndarray | Unknown` is not assignable to parameter `subset` with type `DataFrame | Series | None` in function `pandas.core.frame.DataFrame._gotitem` [bad-argument-type]
+ ERROR pandas/core/apply.py:592:63-67: Argument `DataFrame | Series | ndarray[tuple[Any, ...], dtype[Unknown]] | Unknown` is not assignable to parameter `subset` with type `DataFrame | Series | None` in function `pandas.core.frame.DataFrame._gotitem` [bad-argument-type]
- ERROR pandas/core/array_algos/take.py:227:19-26: Argument `tuple[ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]]]` is not assignable to parameter `indexer` with type `ndarray` in function `wrapper` [bad-argument-type]
- ERROR pandas/core/arrays/boolean.py:264:12-24: Returned type `tuple[ndarray[tuple[int]] | ndarray, ndarray[tuple[int]] | ndarray[tuple[Any, ...], dtype[numpy.bool]] | ndarray | None]` is not assignable to declared return type `tuple[ndarray, ndarray]` [bad-return]
+ ERROR pandas/core/arrays/boolean.py:264:12-24: Returned type `tuple[ndarray[tuple[int]] | ndarray, ndarray[tuple[Any, ...], dtype[numpy.bool]] | ndarray | Unknown | None]` is not assignable to declared return type `tuple[ndarray, ndarray]` [bad-return]
- ERROR pandas/core/arrays/categorical.py:458:27-58: Object of class `ExtensionArray` has no attribute `_pa_array`
- Object of class `ndarray` has no attribute `_pa_array` [missing-attribute]
- ERROR pandas/core/arrays/categorical.py:494:25-53: Object of class `ExtensionArray` has no attribute `_codes`
- Object of class `ndarray` has no attribute `_codes` [missing-attribute]
- ERROR pandas/core/arrays/categorical.py:2307:33-62: Object of class `ndarray` has no attribute `_values` [missing-attribute]
- ERROR pandas/core/arrays/categorical.py:2308:33-63: Object of class `ndarray` has no attribute `_values` [missing-attribute]
- ERROR pandas/core/arrays/categorical.py:3162:35-52: Object of class `ExtensionArray` has no attribute `categories`
- Object of class `ndarray` has no attribute `categories` [missing-attribute]
- ERROR pandas/core/arrays/categorical.py:3162:61-73: Object of class `ExtensionArray` has no attribute `codes`
- Object of class `ndarray` has no attribute `codes` [missing-attribute]
- ERROR pandas/core/arrays/categorical.py:3166:17-29: Object of class `ExtensionArray` has no attribute `codes`
- Object of class `ndarray` has no attribute `codes` [missing-attribute]
- ERROR pandas/core/arrays/interval.py:678:29-33: Argument `ndarray | Unknown` is not assignable to parameter `left` with type `int` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]
- ERROR pandas/core/arrays/interval.py:678:35-40: Argument `ndarray | Unknown` is not assignable to parameter `right` with type `int` in function `pandas._libs.interval.Interval.__init__` [bad-argument-type]
- ERROR pandas/core/arrays/sparse/array.py:1713:20-29: Returned type `ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit]]]` is not assignable to declared return type `int` [bad-return]
- ERROR pandas/core/arrays/sparse/array.py:1715:20-29: Returned type `ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit]]]` is not assignable to declared return type `int` [bad-return]
- ERROR pandas/core/arrays/sparse/array.py:1717:20-29: Returned type `ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit]]]` is not assignable to declared return type `int` [bad-return]
- ERROR pandas/core/arrays/sparse/array.py:1721:20-29: Returned type `ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit]]]` is not assignable to declared return type `int` [bad-return]
- ERROR pandas/core/arrays/sparse/array.py:1723:20-24: Returned type `Literal[0] | ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit]]]` is not assignable to declared return type `int` [bad-return]
- ERROR pandas/core/arrays/string_.py:702:26-32: Argument `ExtensionArray | ndarray` is not assignable to parameter `values` with type `NumpyExtensionArray | ndarray` in function `pandas.core.arrays.numpy_.NumpyExtensionArray.__init__` [bad-argument-type]
- ERROR pandas/core/arrays/string_.py:873:25-39: Object of class `ExtensionArray` has no attribute `_ndarray`
+ ERROR pandas/core/arrays/string_.py:873:25-39: Object of class `NAType` has no attribute `_ndarray`
- Object of class `NAType` has no attribute `_ndarray`
- ERROR pandas/core/computation/ops.py:477:32-38: Argument `Any | None` is not assignable to parameter `cls` with type `type` in function `issubclass` [bad-argument-type]
- ERROR pandas/core/computation/ops.py:478:36-42: Argument `Any | None` is not assignable to parameter `cls` with type `type` in function `issubclass` [bad-argument-type]
- ERROR pandas/core/construction.py:611:51-55: Argument `ExtensionArray | ndarray | object` is not assignable to parameter `value` with type `Interval[Unknown] | Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64` in function `pandas.core.dtypes.cast.construct_1d_arraylike_from_scalar` [bad-argument-type]
- ERROR pandas/core/construction.py:631:24-30: No matching overload found for function `list.__init__` called with arguments: (ExtensionArray | ndarray | object) [no-matching-overload]
- ERROR pandas/core/construction.py:684:20-26: No matching overload found for function `list.__init__` called with arguments: (ExtensionArray | object) [no-matching-overload]
- ERROR pandas/core/frame.py:2362:20-41: `in` is not supported between `ndarray` and `None` [not-iterable]
- ERROR pandas/core/frame.py:4156:28-41: `Index | ndarray | Any` is not assignable to attribute `_name` with type `Hashable` [bad-assignment]
+ ERROR pandas/core/frame.py:4156:28-41: `Index | Unknown` is not assignable to attribute `_name` with type `Hashable` [bad-assignment]
- ERROR pandas/core/frame.py:4292:47-58: Argument `Index | ndarray | Any` is not assignable to parameter `index` with type `Index` in function `pandas.core.indexes.multi.maybe_droplevels` [bad-argument-type]
- ERROR pandas/core/frame.py:4341:20-41: Returned type `ndarray | Any` is not assignable to declared return type `Interval[Unknown] | Timedelta | Timestamp | bool | bytes | complex | complexfloating | date | datetime | datetime64 | float | floating | int | integer | str | timedelta | timedelta64` [bad-return]
- ERROR pandas/core/frame.py:4647:51-55: Argument `Index | ndarray | Any` is not assignable to parameter `index` with type `Index` in function `pandas.core.indexes.multi.maybe_droplevels` [bad-argument-type]
- ERROR pandas/core/frame.py:4817:21-25: `Index | ndarray | Any` is not assignable to attribute `_name` with type `Hashable` [bad-assignment]
+ ERROR pandas/core/frame.py:4817:21-25: `Index | Unknown` is not assignable to attribute `_name` with type `Hashable` [bad-assignment]
- ERROR pandas/core/frame.py:6892:26-58: Object of class `ndarray` has no attribute `unique` [missing-attribute]
- ERROR pandas/core/frame.py:13719:16-27: Returned type `DataFrame | Series | ndarray | Unknown | Self@DataFrame` is not assignable to declared return type `DataFrame | Series` [bad-return]
+ ERROR pandas/core/frame.py:13719:16-27: Returned type `DataFrame | Series | ndarray[tuple[Any, ...], dtype[Unknown]] | Unknown | Self@DataFrame` is not assignable to declared return type `DataFrame | Series` [bad-return]
- ERROR pandas/core/frame.py:18239:53-58: Argument `Index | ndarray | Any` is not assignable to parameter `key` with type `Hashable` in function `pandas.core.generic.NDFrame._get_label_or_level_values` [bad-argument-type]
+ ERROR pandas/core/frame.py:18239:53-58: Argument `Index | Unknown` is not assignable to parameter `key` with type `Hashable` in function `pandas.core.generic.NDFrame._get_label_or_level_values` [bad-argument-type]
- ERROR pandas/core/groupby/generic.py:1278:17-22: Argument `list[ndarray[tuple[int], dtype[Unknown]] | ndarray | ndarray[tuple[Any, ...], dtype[Unknown]]]` is not assignable to parameter `right_keys` with type `list[ArrayLike]` in function `pandas.core.reshape.merge.get_join_indexers` [bad-argument-type]
- ERROR pandas/core/groupby/ops.py:1190:9-29: Class member `BinGrouper.result_index_and_ids` overrides parent class `BaseGrouper` in an inconsistent manner [bad-override]
- ERROR pandas/core/indexes/base.py:732:22-64: Object of class `ndarray` has no attribute `unique` [missing-attribute]
- ERROR pandas/core/indexes/base.py:1027:16-23: Returned type `ndarray | Any | Self@Index` is not assignable to declared return type `Self@Index` [bad-return]
- ERROR pandas/core/indexes/base.py:3286:24-39: Object of class `ndarray` has no attribute `rename` [missing-attribute]
- ERROR pandas/core/indexes/base.py:3298:28-43: Object of class `ndarray` has no attribute `rename` [missing-attribute]
- ERROR pandas/core/indexes/base.py:3300:28-44: Object of class `ndarray` has no attribute `rename` [missing-attribute]
- ERROR pandas/core/indexes/base.py:3434:20-35: Object of class `ndarray` has no attribute `rename` [missing-attribute]
- ERROR pandas/core/indexes/base.py:3460:52-67: Object of class `ndarray` has no attribute `unique` [missing-attribute]
- ERROR pandas/core/indexes/base.py:4233:17-23: Argument `Index | MultiIndex | ndarray | Unknown | Self@Index` is not assignable to parameter `other` with type `Index` in function `Index._join_level` [bad-argument-type]
- ERROR pandas/core/indexes/base.py:4287:20-63: Returned type `tuple[ndarray | Any | Self@Index, ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]], None]` is not assignable to declared return type `tuple[Index, ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]] | None]` [bad-return]
- ERROR pandas/core/indexes/base.py:6316:30-81: Object of class `ndarray` has no attribute `unique` [missing-attribute]
- ERROR pandas/core/indexes/base.py:6609:23-37: Object of class `ndarray` has no attribute `array` [missing-attribute]
- ERROR pandas/core/indexes/base.py:8055:37-81: No matching overload found for function `numpy.ndarray.astype` called with arguments: (ArrowDtype) [no-matching-overload]
- ERROR pandas/core/indexes/datetimelike.py:769:21-35: Object of class `DatetimeTimedeltaMixin` has no attribute `_value`
+ ERROR pandas/core/indexes/datetimelike.py:769:21-35: Object of class `DatetimeTimedeltaMixin` has no attribute `_value` [missing-attribute]
- Object of class `ndarray` has no attribute `_value` [missing-attribute]
- ERROR pandas/core/indexes/datetimelike.py:769:37-52: Object of class `DatetimeTimedeltaMixin` has no attribute `_value`
+ ERROR pandas/core/indexes/datetimelike.py:769:37-52: Object of class `DatetimeTimedeltaMixin` has no attribute `_value` [missing-attribute]
- Object of class `ndarray` has no attribute `_value` [missing-attribute]
- ERROR pandas/core/indexes/datetimelike.py:853:45-50: Argument `ndarray | Unknown | Self@DatetimeTimedeltaMixin` is not assignable to parameter `start` with type `Hashable | None` in function `pandas.core.indexes.base.Index.slice_locs` [bad-argument-type]
+ ERROR pandas/core/indexes/datetimelike.py:853:45-50: Argument `Unknown | Self@DatetimeTimedeltaMixin` is not assignable to parameter `start` with type `Hashable | None` in function `pandas.core.indexes.base.Index.slice_locs` [bad-argument-type]
- ERROR pandas/core/indexes/datetimelike.py:853:52-55: Argument `ndarray | Unknown | Self@DatetimeTimedeltaMixin` is not assignable to parameter `end` with type `Hashable | None` in function `pandas.core.indexes.base.Index.slice_locs` [bad-argument-type]
+ ERROR pandas/core/indexes/datetimelike.py:853:52-55: Argument `Unknown | Self@DatetimeTimedeltaMixin` is not assignable to parameter `end` with type `Hashable | None` in function `pandas.core.indexes.base.Index.slice_locs` [bad-argument-type]
- ERROR pandas/core/indexes/interval.py:567:16-50: Object of class `ndarray` has no attribute `is_monotonic_increasing` [missing-attribute]
- ERROR pandas/core/indexes/interval.py:1256:16-26: Returned type `ndarray | Any | Self@IntervalIndex` is not assignable to declared return type `IntervalIndex` [bad-return]
- ERROR pandas/core/indexes/range.py:765:16-30: Returned type `tuple[ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], Index | int | ndarray | Any | Self@RangeIndex]` is not assignable to declared return type `tuple[ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]], RangeIndex]` [bad-return]
+ ERROR pandas/core/indexes/range.py:765:16-30: Returned type `tuple[ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], Index | int | Unknown | Self@RangeIndex]` is not assignable to declared return type `tuple[ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]], RangeIndex]` [bad-return]
- ERROR pandas/core/indexes/range.py:837:20-49: Returned type `tuple[Index | int | ndarray | Any | Self@RangeIndex, RangeIndex]` is not assignable to declared return type `tuple[Self@RangeIndex, RangeIndex | ndarray] | Self@RangeIndex` [bad-return]
+ ERROR pandas/core/indexes/range.py:837:20-49: Returned type `tuple[Index | int | Unknown | Self@RangeIndex, RangeIndex]` is not assignable to declared return type `tuple[Self@RangeIndex, RangeIndex | ndarray] | Self@RangeIndex` [bad-return]
- ERROR pandas/core/indexes/range.py:839:20-32: Returned type `Index | int | ndarray | Any | Self@RangeIndex` is not assignable to declared return type `tuple[Self@RangeIndex, RangeIndex | ndarray] | Self@RangeIndex` [bad-return]
+ ERROR pandas/core/indexes/range.py:839:20-32: Returned type `Index | int | Unknown | Self@RangeIndex` is not assignable to declared return type `tuple[Self@RangeIndex, RangeIndex | ndarray] | Self@RangeIndex` [bad-return]
- ERROR pandas/core/indexes/range.py:997:20-42: Object of class `int` has no attribute `_difference`
+ ERROR pandas/core/indexes/range.py:997:20-42: Object of class `int` has no attribute `_difference` [missing-attribute]
- Object of class `ndarray` has no attribute `_difference` [missing-attribute]
- ERROR pandas/core/indexes/range.py:1006:16-23: Argument `Index | int | ndarray | Unknown | Self@RangeIndex` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR pandas/core/indexes/range.py:1006:16-23: Argument `Index | int | Unknown | Self@RangeIndex` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR pandas/core/indexes/range.py:1008:16-23: Argument `Index | int | ndarray | Unknown | Self@RangeIndex` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR pandas/core/indexes/range.py:1008:16-23: Argument `Index | int | Unknown | Self@RangeIndex` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR pandas/core/indexes/range.py:1009:20-35: Object of class `int` has no attribute `rename`
+ ERROR pandas/core/indexes/range.py:1009:20-35: Object of class `int` has no attribute `rename` [missing-attribute]
- Object of class `ndarray` has no attribute `rename` [missing-attribute]
- ERROR pandas/core/indexes/range.py:1013:16-23: Argument `Index | int | ndarray | Unknown | Self@RangeIndex` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR pandas/core/indexes/range.py:1013:16-23: Argument `Index | int | Unknown | Self@RangeIndex` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- ERROR pandas/core/indexes/range.py:1026:18-25: Argument `Index | int | ndarray | Unknown | Self@RangeIndex` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
+ ERROR pandas/core/indexes/range.py:1026:18-25: Argument `Index | int | Unknown | Self@RangeIndex` is not assignable to parameter `obj` with type `Sized` in function `len` [bad-argument-type]
- Object of class `int` has no attribute `step`
- Object of class `ndarray` has no attribute `step` [missing-attribute]
+ Object of class `int` has no attribute `step` [missing-attribute]
- ERROR pandas/core/indexes/range.py:1036:32-69: No matching overload found for function `range.__new__` called with arguments: (type[range], int, Index | int | ndarray | Unknown | Self@RangeIndex, int) [no-matching-overload]
+ ERROR pandas/core/indexes/range.py:1036:32-69: No matching overload found for function `range.__new__` called with arguments: (type[range], int, Index | int | Unknown | Self@RangeIndex, int) [no-matching-overload]
- Object of class `int` has no attribute `_range`
- Object of class `ndarray` has no attribute `_range` [missing-attribute]
+ Object of class `int` has no attribute `_range` [missing-attribute]
- ERROR pandas/core/indexes/range.py:1139:24-32: Returned type `Index | int | ndarray | Any | Self@RangeIndex` is not assignable to declared return type `Index` [bad-return]
+ ERROR pandas/core/indexes/range.py:1139:24-32: Returned type `Index | int | Unknown | Self@RangeIndex` is not assignable to declared return type `Index` [bad-return]
- ERROR pandas/core/indexes/range.py:1141:24-33: Returned type `Index | int | ndarray | Any | Self@RangeIndex` is not assignable to declared return type `Index` [bad-return]
+ ERROR pandas/core/indexes/range.py:1141:24-33: Returned type `Index | int | Unknown | Self@RangeIndex` is not assignable to declared return type `Index` [bad-return]
- ERROR pandas/core/indexes/range.py:1143:24-33: Returned type `Index | int | ndarray | Any | Self@RangeIndex` is not assignable to declared return type `Index` [bad-return]
+ ERROR pandas/core/indexes/range.py:1143:24-33: Returned type `Index | int | Unknown | Self@RangeIndex` is not assignable to declared return type `Index` [bad-return]
- ERROR pandas/core/internals/blocks.py:1204:29-46: Cannot index into `ExtensionArray` [bad-index]
- ERROR pandas/core/internals/construction.py:259:22-36: Object of class `ExtensionArray` has no attribute `reshape` [missing-attribute]
- ERROR pandas/core/internals/construction.py:299:39-45: Argument `ExtensionArray | ndarray | Unknown` is not assignable to parameter `values` with type `ndarray` in function `_check_values_indices_shape_match` [bad-argument-type]
- ERROR pandas/core/internals/construction.py:791:24-39: Returned type `tuple[list[ndarray], Index]` is not assignable to declared return type `tuple[list[ArrayLike], Index]` [bad-return]
- ERROR pandas/core/internals/construction.py:799:16-31: Returned type `tuple[list[ndarray], Index]` is not assignable to declared return type `tuple[list[ArrayLike], Index]` [bad-return]
- ERROR pandas/core/internals/construction.py:854:24-40: No matching overload found for function `numpy._core.shape_base.vstack` called with arguments: (list[ExtensionArray | ndarray]) [no-matching-overload]
- ERROR pandas/core/internals/managers.py:445:53-84: Argument `list[DatetimeIndex | Index | TimedeltaIndex | ndarray[tuple[Any, ...], Unknown] | Unknown]` is not assignable to parameter `axes` with type `list[Index]` in function `BaseBlockManager.from_blocks` [bad-argument-type]
- ERROR pandas/core/internals/managers.py:573:30-45: Cannot index into `ExtensionArray` [bad-index]
- ERROR pandas/core/internals/managers.py:735:20-28: `list[DatetimeIndex | Index | TimedeltaIndex | ndarray[tuple[Any, ...], Unknown] | Unknown]` is not assignable to attribute `axes` with type `list[Index]` [bad-assignment]
- ERROR pandas/core/internals/managers.py:870:13-31: Cannot set item in `list[Index]` [unsupported-operation]
- ERROR pandas/core/internals/managers.py:1158:46-65: Argument `DatetimeIndex | Index | TimedeltaIndex | ndarray[tuple[Any, ...], Unknown] | Unknown` is not assignable to parameter `axis` with type `Index` in function `SingleBlockManager.__init__` [bad-argument-type]
- ERROR pandas/core/internals/managers.py:1203:42-61: Argument `DatetimeIndex | Index | TimedeltaIndex | ndarray[tuple[Any, ...], Unknown] | Unknown` is not assignable to parameter `axis` with type `Index` in function `SingleBlockManager.__init__` [bad-argument-type]
- ERROR pandas/core/internals/managers.py:1217:39-58: Argument `DatetimeIndex | Index | TimedeltaIndex | ndarray[tuple[Any, ...], Unknown] | Unknown` is not assignable to parameter `axis` with type `Index` in function `SingleBlockManager.__init__` [bad-argument-type]
- ERROR pandas/core/internals/managers.py:1619:39-43: Argument `list[Index | ndarray | Any]` is not assignable to parameter `axes` with type `Sequence[Index]` in function `BlockManager.__init__` [bad-argument-type]
- ERROR pandas/core/internals/managers.py:1656:54-82: Argument `list[DatetimeIndex | Index | TimedeltaIndex | ndarray[tuple[Any, ...], Unknown] | Unknown]` is not assignable to parameter `axes` with type `list[Index]` in function `BlockManager.from_blocks` [bad-argument-type]
- ERROR pandas/core/internals/managers.py:1723:35-43: Argument `list[DatetimeIndex | Index | TimedeltaIndex | ndarray[tuple[Any, ...], Unknown] | Unknown]` is not assignable to parameter `axes` with type `Sequence[Index]` in function `BlockManager.__init__` [bad-argument-type]
- ERROR pandas/core/internals/managers.py:2053:45-49: Argument `list[DatetimeIndex | Index | TimedeltaIndex | ndarray[tuple[Any, ...], Unknown] | Unknown]` is not assignable to parameter `axes` with type `Sequence[Index]` in function `BlockManager.__init__` [bad-argument-type]
- ERROR pandas/core/internals/managers.py:2151:34-41: Argument `Index | ndarray | Any` is not assignable to parameter `axis` with type `Index` in function `SingleBlockManager.__init__` [bad-argument-type]
- ERROR pandas/core/methods/selectn.py:116:20-32: Returned type `Series | ndarray | Unknown` is not assignable to declared return type `Series` [bad-return]
+ ERROR pandas/core/methods/selectn.py:116:20-32: Returned type `Series | ndarray[tuple[Any, ...], dtype[Unknown]] | Unknown` is not assignable to declared return type `Series` [bad-return]
- ERROR pandas/core/resample.py:2664:22-35: Object of class `ndarray` has no attribute `insert` [missing-attribute]
- ERROR pandas/core/resample.py:2707:26-37: `DatetimeIndex | ndarray | Any` is not assignable to variable `binner` with type `DatetimeIndex` [bad-assignment]
- ERROR pandas/core/resample.py:2831:14-23: Object of class `ndarray` has no attribute `asi8` [missing-attribute]
- ERROR pandas/core/resample.py:2842:21-31: Object of class `ndarray` has no attribute `_data` [missing-attribute]
- ERROR pandas/core/reshape/concat.py:722:23-67: Object of class `ndarray` has no attribute `unique`
... (truncated 783 lines) ...
pip (https://github.com/pypa/pip)
- ERROR src/pip/_internal/network/auth.py:336:16-54: Returned type `Literal[b'']` is not assignable to declared return type `str | None` [bad-return]
- ERROR src/pip/_vendor/pygments/lexer.py:918:9-23: Class member `ProfilingRegexLexerMeta._process_regex` overrides parent class `RegexLexerMeta` in an inconsistent manner [bad-param-name-override]
+ ERROR src/pip/_vendor/rich/progress.py:677:26-45: No matching overload found for function `max` called with arguments: (Literal[0], float) [no-matching-overload]
tornado (https://github.com/tornadoweb/tornado)
+ ERROR tornado/platform/asyncio.py:223:16-39: No matching overload found for function `max` called with arguments: (Literal[0], float) [no-matching-overload]
+ ERROR tornado/websocket.py:1356:19-55: No matching overload found for function `max` called with arguments: (Literal[0], float) [no-matching-overload]
egglog-python (https://github.com/egraphs-good/egglog-python)
- ERROR python/egglog/exp/array_api_numba.py:50:50-78: Object of class `int` has no attribute `to_value` [missing-attribute]
- ERROR python/tests/__snapshots__/test_array_api/test_jit[lda][expr].py:13:17-78: Object of class `int` has no attribute `to_value` [missing-attribute]
- ERROR python/tests/__snapshots__/test_array_api/test_jit[lda][expr].py:14:17-78: Object of class `int` has no attribute `to_value` [missing-attribute]
- ERROR python/tests/__snapshots__/test_array_api/test_jit[lda][expr].py:15:17-78: Object of class `int` has no attribute `to_value` [missing-attribute]
- ERROR python/tests/__snapshots__/test_array_api/test_jit[lda][expr].py:54:53-156: Object of class `int` has no attribute `to_value` [missing-attribute]
- ERROR python/tests/__snapshots__/test_array_api/test_jit[lda][initial_expr].py:59:53-156: Object of class `int` has no attribute `to_value` [missing-attribute]
porcupine (https://github.com/Akuli/porcupine)
- ERROR porcupine/plugins/highlight/tree_sitter_highlighter.py:83:20-72: Returned type `Unknown | None` is not assignable to declared return type `str` [bad-return]
cwltool (https://github.com/common-workflow-language/cwltool)
- ERROR cwltool/checker.py:462:47-54: Cannot set item in `MutableMapping[str, MutableMapping[str, CWLOutputType] | MutableSequence[CWLOutputType] | bool | float | int | str | None]` [unsupported-operation]
- ERROR cwltool/command_line_tool.py:853:78-98: `dict[str, list[MutableMapping[str, CWLOutputType] | MutableSequence[CWLOutputType] | bool | float | int | str] | list[Any]]` is not assignable to `dict[str, MutableMapping[str, MutableMapping[str, CWLOutputType] | MutableSequence[CWLOutputType] | bool | float | int | str | None] | MutableSequence[int | str]]` [bad-assignment]
scipy-stubs (https://github.com/scipy/scipy-stubs)
+ ERROR tests/linalg/test__sketches.pyi:36:12-71: assert_type(Unknown, ndarray) failed [assert-type]
+ ERROR tests/linalg/test__sketches.pyi:43:12-73: assert_type(Unknown, csc_matrix) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:81:12-53: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:86:12-56: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:91:12-65: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:114:12-54: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:119:12-57: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:142:12-66: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:147:12-69: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:166:12-52: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[unsignedinteger[_8Bit]]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:171:12-55: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:190:12-56: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:195:12-57: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:214:12-64: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/linalg/test__special_matrices.pyi:219:12-65: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/ndimage/test__filters.pyi:294:12-70: assert_type(Unknown, ndarray[tuple[int, int], dtype[float64]]) failed [assert-type]
+ ERROR tests/ndimage/test__filters.pyi:295:12-72: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/ndimage/test__filters.pyi:301:12-81: assert_type(Unknown, ndarray[tuple[int, int], dtype[float64]]) failed [assert-type]
+ ERROR tests/ndimage/test__filters.pyi:302:12-83: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/signal/test_czt.pyi:29:12-58: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[_Complex]]) failed [assert-type]
+ ERROR tests/signal/test_czt.pyi:38:12-59: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[_Complex]]) failed [assert-type]
+ ERROR tests/signal/test_czt.pyi:51:12-48: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[_Complex]]) failed [assert-type]
+ ERROR tests/signal/test_czt.pyi:59:12-58: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[_Complex]]) failed [assert-type]
+ ERROR tests/signal/test_signaltools.pyi:328:12-57: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[complex128]]) failed [assert-type]
+ ERROR tests/signal/test_signaltools.pyi:329:12-57: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[complexfloating[_32Bit, _32Bit]]]) failed [assert-type]
+ ERROR tests/signal/test_signaltools.pyi:330:12-57: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[complexfloating[_32Bit, _32Bit]]]) failed [assert-type]
+ ERROR tests/signal/test_signaltools.pyi:331:12-58: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[complex128]]) failed [assert-type]
+ ERROR tests/signal/test_signaltools.pyi:332:12-67: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[cfloating80]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:32:12-107: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:36:12-107: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:40:12-108: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:44:12-104: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:50:12-106: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:54:12-106: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:58:12-107: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:62:12-103: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:68:12-108: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:72:12-108: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:76:12-109: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/sparse/linalg/test__expm_multiply.pyi:80:12-105: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/spatial/test__rigid_transform.pyi:88:12-65: assert_type(Unknown, RigidTransform) failed [assert-type]
+ ERROR tests/spatial/test__rigid_transform.pyi:98:12-70: assert_type(Unknown, RigidTransform) failed [assert-type]
+ ERROR tests/spatial/test__rigid_transform.pyi:107:12-78: assert_type(Unknown, RigidTransform) failed [assert-type]
+ ERROR tests/spatial/test__rigid_transform.pyi:108:12-78: assert_type(Unknown, RigidTransform) failed [assert-type]
+ ERROR tests/spatial/test__rigid_transform.pyi:109:12-78: assert_type(Unknown, RigidTransform) failed [assert-type]
+ ERROR tests/spatial/test__rigid_transform.pyi:114:12-69: assert_type(Unknown, RigidTransform) failed [assert-type]
+ ERROR tests/spatial/test__rigid_transform.pyi:119:12-68: assert_type(Unknown, RigidTransform) failed [assert-type]
+ ERROR tests/spatial/test__rigid_transform.pyi:130:12-74: assert_type(Unknown, RigidTransform) failed [assert-type]
+ ERROR tests/spatial/test__rotation.pyi:37:12-51: assert_type(Unknown, Rotation) failed [assert-type]
+ ERROR tests/spatial/test__rotation.pyi:44:12-53: assert_type(Unknown, Rotation) failed [assert-type]
+ ERROR tests/spatial/test__rotation.pyi:48:12-50: assert_type(Unknown, Rotation) failed [assert-type]
+ ERROR tests/spatial/test__rotation.pyi:81:12-64: assert_type(Unknown, Rotation) failed [assert-type]
+ ERROR tests/stats/test__stats_py.pyi:310:12-57: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:119:12-73: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:120:12-73: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:121:12-73: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:122:12-73: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:127:12-55: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:128:12-55: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:129:12-55: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:130:12-55: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:137:12-70: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:138:12-70: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[float64]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:139:12-70: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
+ ERROR tests/stats/test_lmoment.pyi:140:12-70: assert_type(Unknown, ndarray[tuple[Any, ...], dtype[floating[_32Bit]]]) failed [assert-type]
materialize (https://github.com/MaterializeInc/materialize)
- ERROR misc/python/materialize/scratch.py:345:9-350:10: Argument `Future[list[None]]` is not assignable to parameter `future` with type `Awaitable[tuple[None]]` in function `asyncio.events.AbstractEventLoop.run_until_complete` [bad-argument-type]
- ERROR misc/python/materialize/workload_replay/data.py:336:29-337:50: `*` is not supported between `None` and `float` [unsupported-operation]
aiohttp (https://github.com/aio-libs/aiohttp)
- ERROR aiohttp/web.py:411:29-79: Argument `Future[list[BaseException | Any]]` is not assignable to parameter `future` with type `Awaitable[tuple[Any]]` in function `asyncio.events.AbstractEventLoop.run_until_complete` [bad-argument-type]
core (https://github.com/home-assistant/core)
- ERROR homeassistant/components/airos/config_flow.py:354:38-66: Argument `dict[str, Any | None]` is not assignable to parameter `description_placeholders` with type `Mapping[str, str] | None` in function `homeassistant.config_entries.ConfigFlow.async_show_form` [bad-argument-type]
- ERROR homeassistant/components/application_credentials/__init__.py:144:16-27: Returned type `dict[Unknown | None, ClientCredential]` is not assignable to declared return type `dict[str, ClientCredential]` [bad-return]
- ERROR homeassistant/components/aprilaire/entity.py:37:27-39:69: `Any | None` is not assignable to `bool` [bad-assignment]
- ERROR homeassistant/components/aprilaire/entity.py:41:25-75: `Any | None` is not assignable to `bool` [bad-assignment]
- ERROR homeassistant/components/bayesian/config_flow.py:558:31-83: Argument `Any | None` is not assignable to parameter `title` with type `UndefinedType | str` in function `homeassistant.config_entries.ConfigSubentryFlow.async_update_and_abort` [bad-argument-type]
+ ERROR homeassistant/components/bluesound/media_player.py:696:21-32: No matching overload found for function `max` called with arguments: (Literal[0], float) [no-matching-overload]
- ERROR homeassistant/components/ezviz/select.py:79:12-34: Object of class `NoneType` has no attribute `name` [missing-attribute]
- ERROR homeassistant/components/fritz/services.py:65:17-73: Argument `Any | None` is not assignable to parameter `length` with type `int` in function `homeassistant.components.fritz.coordinator.FritzBoxTools.async_trigger_set_guest_password` [bad-argument-type]
- ERROR homeassistant/components/gogogate2/config_flow.py:96:54-59: Argument `Any | None` is not assignable to parameter `title` with type `str` in function `homeassistant.config_entries.ConfigFlow.async_create_entry` [bad-argument-type]
- ERROR homeassistant/components/google_assistant/smart_home.py:256:17-261:18: Argument `Future[list[Unknown]]` is not assignable to parameter `arg` with type `Awaitable[tuple[Unknown]] | Future[tuple[Unknown]]` in function `asyncio.tasks.shield` [bad-argument-type]
- ERROR homeassistant/components/group/__init__.py:237:17-55: Argument `Any | None` is not assignable to parameter `name` with type `str` in function `homeassistant.components.group.entity.Group.async_create_group` [bad-argument-type]
- ERROR homeassistant/components/hassio/backup.py:139:14-141:10: Argument `Unknown | None` is not assignable to parameter `date` with type `str` in function `homeassistant.components.backup.models.AgentBackup.__init__` [bad-argument-type]
- ERROR homeassistant/components/hassio/coordinator.py:392:46-80: Argument `dict_values[Unknown, dict[str | Any, Unknown | None]]` is not assignable to parameter `addons` with type `list[dict[str, Any]]` in function `async_register_addons_in_dev_reg` [bad-argument-type]
+ ERROR homeassistant/components/hassio/coordinator.py:392:46-80: Argument `dict_values[Unknown, dict[str | Any, Unknown]]` is not assignable to parameter `addons` with type `list[dict[str, Any]]` in function `async_register_addons_in_dev_reg` [bad-argument-type]
- ERROR homeassistant/components/homeassistant/__init__.py:433:46-60: Argument `dict[str, Any | None]` is not assignable to parameter `translation_placeholders` with type `dict[str, str] | None` in function `homeassistant.helpers.issue_registry.async_create_issue` [bad-argument-type]
- ERROR homeassistant/components/hydrawise/sensor.py:143:16-49: Object of class `NoneType` has no attribute `total_use` [missing-attribute]
- ERROR homeassistant/components/hyperion/camera.py:160:20-66: Object of class `NoneType` has no attribute `get` [missing-attribute]
- ERROR homeassistant/components/knx/number.py:136:39-139:10: `Any | None` is not assignable to attribute `_attr_native_max_value` with type `float` [bad-assignment]
- ERROR homeassistant/components/knx/number.py:140:39-143:10: `Any | None` is not assignable to attribute `_attr_native_min_value` with type `float` [bad-assignment]
- ERROR homeassistant/components/knx/number.py:144:34-147:10: `Any | None` is not assignable to attribute `_attr_native_step` with type `float` [bad-assignment]
- ERROR homeassistant/components/knx/number.py:154:46-78: No matching overload found for function `max` called with arguments: (Literal[0], float) [no-matching-overload]
- ERROR homeassistant/components/litejet/light.py:110:73-85: No matching overload found for function `int.__new__` called with arguments: (type[int], Any | None) [no-matching-overload]
+ ERROR homeassistant/components/media_player/__init__.py:1051:20-61: No matching overload found for function `min` called with arguments: (Literal[1], float) [no-matching-overload]
+ ERROR homeassistant/components/media_player/__init__.py:1069:20-61: No matching overload found for function `max` called with arguments: (Literal[0], float) [no-matching-overload]
- ERROR homeassistant/components/mjpeg/config_flow.py:162:27-80: Argument `Any | None` is not assignable to parameter `title` with type `str` in function `homeassistant.config_entries.ConfigFlow.async_create_entry` [bad-argument-type]
- ERROR homeassistant/components/modbus/modbus.py:179:16-46: Returned type `tuple[ModbusHub | Unknown, Any | None, Any]` is not assignable to declared return type `tuple[ModbusHub, int, int]` [bad-return]
- ERROR homeassistant/components/nfandroidtv/notify.py:105:35-107:22: No matching overload found for function `int.__new__` called with arguments: (type[int], Unknown | None) [no-matching-overload]
- ERROR homeassistant/components/omnilogic/sensor.py:136:13-138:14: Invalid key for TypedDict `<anonymous>`, got `None` [bad-typed-dict-key]
- ERROR homeassistant/components/orvibo/config_flow.py:204:19-67: Argument `Any | None` is not assignable to parameter `title` with type `str` in function `homeassistant.config_entries.ConfigFlow.async_create_entry` [bad-argument-type]
+ ERROR homeassistant/components/refoss/sensor.py:101:29-35: No matching overload found for function `max` called with arguments: (Literal[0], float) [no-matching-overload]
- ERROR homeassistant/components/shelly/config_flow.py:1249:57-61: Argument `Any | None` is not assignable to parameter `port` with type `int` in function `ShellyConfigFlow._async_get_info` [bad-argument-type]
+ ERROR homeassistant/components/smartthings/sensor.py:383:26-71: Argument `(value: Any) -> object | str | None` is not assignable to parameter `value_fn` with type `(Any) -> datetime | float | int | str | None` in function `SmartThingsSensorEntityDescription.__init__` [bad-argument-type]
+ ERROR homeassistant/components/smartthings/sensor.py:436:26-71: Argument `(value: Any) -> object | str | None` is not assignable to parameter `value_fn` with type `(Any) -> datetime | float | int | str | None` in function `SmartThingsSensorEntityDescription.__init__` [bad-argument-type]
+ ERROR homeassistant/components/smartthings/sensor.py:1181:26-71: Argument `(value: Any) -> object | str | None` is not assignable to parameter `value_fn` with type `(Any) -> datetime | float | int | str | None` in function `SmartThingsSensorEntityDescription.__init__` [bad-argument-type]
+ ERROR homeassistant/components/smartthings/sensor.py:1381:13-1383:68: Returned type `UnitOfPressure | UnitOfTemperature | UnitOfVolume | object | str | None` is not assignable to declared return type `str | None` [bad-return]
- ERROR homeassistant/components/snmp/switch.py:261:29-74: Expected a callable, got `None` [not-callable]
- ERROR homeassistant/components/ssdp/__init__.py:62:9-65:10: Argument `((SsdpServiceInfo, SsdpChange) -> Coroutine[Any, Any, None]) | ((SsdpServiceInfo, SsdpChange) -> None)` is not assignable to parameter `target` with type `(SsdpServiceInfo, SsdpChange) -> Coroutine[Any, Any, None]` in function `homeassistant.core.HassJob.__init__` [bad-argument-type]
+ ERROR homeassistant/components/ssdp/__init__.py:62:9-65:10: Argument `((SsdpServiceInfo, SsdpChange) -> Coroutine[Any, Any, None]) | ((SsdpServiceInfo, SsdpChange) -> None)` is not assignable to parameter `target` with type `(**tuple[Unknown, ...]) -> Coroutine[Any, Any, None]` in function `homeassistant.core.HassJob.__init__` [bad-argument-type]
- ERROR homeassistant/components/switchbot/__init__.py:227:22-25: Expected a callable, got `None` [not-callable]
- ERROR homeassistant/components/switchbot/__init__.py:241:18-21: Expected a callable, got `None` [not-callable]
- ERROR homeassistant/components/volumio/config_flow.py:88:30-58: `Any | None` is not assignable to attribute `_name` with type `str` [bad-assignment]
+ ERROR homeassistant/components/wilight/light.py:112:15-51: No matching overload found for function `min` called with arguments: (Literal[360], float) [no-matching-overload]
+ ERROR homeassistant/components/wilight/light.py:122:15-51: No matching overload found for function `min` called with arguments: (Literal[100], float) [no-matching-overload]
- ERROR homeassistant/components/yandextts/tts.py:144:71-80: Argument `dict[str, str | Unknown | None]` is not assignable to parameter `params` with type `Mapping[str, Sequence[SupportsInt | float | str] | SupportsInt | float | str] | Sequence[tuple[str, Sequence[SupportsInt | float | str] | SupportsInt | float | str]] | str | None` in function `aiohttp.client.ClientSession.get` [bad-argument-type]
- ERROR homeassistant/core_config.py:143:25-28: Argument `Any | None` is not assignable to parameter `element` with type `str` in function `set.add` [bad-argument-type]
- ERROR homeassistant/helpers/integration_platform.py:184:9-187:10: Argument `((HomeAssistant, str, Any) -> Coroutine[Any, Any, None]) | ((HomeAssistant, str, Any) -> None)` is not assignable to parameter `target` with type `(HomeAssistant, str, Any) -> Coroutine[Any, Any, None]` in function `homeassistant.core.HassJob.__init__` [bad-argument-type]
+ ERROR homeassistant/helpers/integration_platform.py:184:9-187:10: Argument `((HomeAssistant, str, Any) -> Coroutine[Any, Any, None]) | ((HomeAssistant, str, Any) -> None)` is not assignable to parameter `target` with type `(**tuple[Unknown, ...]) -> Coroutine[Any, Any, None]` in function `homeassistant.core.HassJob.__init__` [bad-argument-type]
- ERROR homeassistant/helpers/script.py:1041:24-78: Argument `Any | None` is not assignable to parameter `default_message` with type `str` in function `_ScriptRun._step_log` [bad-argument-type]
mkosi (https://github.com/systemd/mkosi)
- ERROR mkosi/config.py:6039:29-53: Argument `Any | None` is not assignable to parameter `file_id` with type `str` in function `Drive.__init__` [bad-argument-type]
- ERROR mkosi/qemu.py:604:42-96: Argument `_TemporaryFileWrapper[bytes]` is not assignable to parameter `cm` with type `AbstractContextManager[_TemporaryFileWrapper[str]]` in function `contextlib._BaseExitStack.enter_context` [bad-argument-type]
trio (https://github.com/python-trio/trio)
- ERROR src/trio/_core/_parking_lot.py:200:23-30: No matching overload found for function `range.__new__` called with arguments: (type[range], float | int) [no-matching-overload]
+ ERROR src/trio/_core/_parking_lot.py:199:24-50: No matching overload found for function `min` called with arguments: (Never, int) [no-matching-overload]
mitmproxy (https://github.com/mitmproxy/mitmproxy)
- ERROR mitmproxy/flowfilter.py:266:40-66: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:268:41-68: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:280:40-66: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:291:41-68: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:307:34-43: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:313:34-43: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:317:67-81: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:324:44-69: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:326:45-71: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:343:34-43: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:347:59-73: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:354:44-69: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:370:34-43: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:374:63-77: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/flowfilter.py:381:45-71: No matching overload found for function `re.Pattern.search` called with arguments: (bytes) [no-matching-overload]
- ERROR mitmproxy/tls.py:107:16-19: Returned type `list[tuple[Unknown, Any | None]]` is not assignable to declared return type `list[tuple[int, bytes]]` [bad-return]
scipy (https://github.com/scipy/scipy)
- ERROR scipy/io/matlab/_mio5.py:519:5-22: Cannot set item in `ndarray[tuple[()], dtype[float64]]` [unsupported-operation]
- ERROR scipy/ndimage/_support_alternative_backends.py:116:9-21: Expected a callable, got `None` [not-callable]
- ERROR scipy/signal/_support_alternative_backends.py:401:13-25: Expected a callable, got `None` [not-callable]
+ ERROR subprojects/pyprima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:232:21-41: Cannot set item in `ndarray` [unsupported-operation]
+ ERROR subprojects/pyprima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:232:44-64: Cannot index into `ndarray` [bad-index]
+ ERROR subprojects/pyprima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:17-39: Cannot set item in `ndarray` [unsupported-operation]
+ ERROR subprojects/pyprima/pyprima/pyprima/src/pyprima/cobyla/trustregion.py:266:42-64: Cannot index into `ndarray` [bad-index]
colour (https://github.com/colour-science/colour)
- ERROR colour/io/luts/lut.py:1433:23-1438:18: No matching overload found for function `numpy.lib._arraypad_impl.pad` called with arguments: (Unknown, tuple[Literal[0], signedinteger[_16Bit] | signedinteger[_32Bit] | signedinteger[_64Bit] | signedinteger[_8Bit] | unsignedinteger[_16Bit] | unsignedinteger[_32Bit] | unsignedinteger[_64Bit] | unsignedinteger[_8Bit]], mode=Literal['constant'], constant_values=float) [no-matching-overload]
- ERROR colour/io/luts/lut.py:2097:12-29: `>` is not supported between `None` and `Literal[129]` [unsupported-operation]
- ERROR colour/io/luts/lut.py:2119:37-2121:14: No matching overload found for function `numpy._core.fromnumeric.reshape` called with arguments: (Any, tuple[Any | None, Any | None, Any | None, Literal[3]]) [no-matching-overload]
- ERROR colour/io/luts/lut.py:2135:37-2138:14: No matching overload found for function `numpy._core.fromnumeric.reshape` called with arguments: (Any, tuple[Any | None, Any | None, Any | None, Literal[3]]) [no-matching-overload]
+ ERROR colour/io/luts/tests/test_lut.py:638:13-642:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/io/luts/tests/test_lut.py:650:21-654:22: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/io/luts/tests/test_lut.py:1190:13-1194:14: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/notation/munsell.py:2573:13-43: Argument `tuple[Any, Any, Any]` is not assignable to parameter `value` with type `tuple[float, float]` in function `list.index` [bad-argument-type]
+ ERROR colour/notation/munsell.py:2573:13-43: Argument `tuple[Any, Unknown, Any]` is not assignable to parameter `value` with type `tuple[float, float]` in function `list.index` [bad-argument-type]
- ERROR colour/notation/munsell.py:2578:13-45: Argument `tuple[Any, Any, Any]` is not assignable to parameter `value` with type `tuple[float, float]` in function `list.index` [bad-argument-type]
+ ERROR colour/notation/munsell.py:2578:13-45: Argument `tuple[Any, Unknown, Any]` is not assignable to parameter `value` with type `tuple[float, float]` in function `list.index` [bad-argument-type]
+ ERROR colour/notation/tests/test_munsell.py:1734:32-80: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/notation/tests/test_munsell.py:1927:32-80: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
+ ERROR colour/plotting/colorimetry.py:231:24-45: Argument `list[_NestedSequence[bytes | complex | str] | bytes | complex | ndarray[tuple[Any, ...], dtype[float64 | floating[_16Bit] | floating[_32Bit]]] | ndarray[tuple[Any, ...], dtype[Unknown]] | str]` is not assignable to parameter `a` with type `Buffer | _NestedSequence[bytes | complex | str] | _NestedSequence[_SupportsArray[dtype]] | _SupportsArray[dtype] | bytes | complex | str` in function `colour.utilities.array.tstack` [bad-argument-type]
- ERROR colour/plotting/diagrams.py:451:13-457:14: Argument `ndarray[tuple[int, int, int]]` is not assignable to parameter `segments` with type `Sequence[ArrayLike]` in function `matplotlib.collections.LineCollection.__init__` [bad-argument-type]
- ERROR colour/plotting/diagrams.py:465:13-56: Argument `ndarray[tuple[int, int, int]]` is not assignable to parameter `segments` with type `Sequence[ArrayLike]` in function `matplotlib.collections.LineCollection.__init__` [bad-argument-type]
- ERROR colour/plotting/models.py:419:13-425:14: Argument `ndarray[tuple[int, int, int]]` is not assignable to parameter `segments` with type `Sequence[ArrayLike]` in function `matplotlib.collections.LineCollection.__init__` [bad-argument-type]
- ERROR colour/plotting/temperature.py:233:9-238:10: Argument `ndarray[tuple[int, int, int]]` is not assignable to parameter `segments` with type `Sequence[ArrayLike]` in function `matplotlib.collections.LineCollection.__init__` [bad-argument-type]
- ERROR colour/plotting/temperature.py:479:13-484:14: Argument `ndarray[tuple[int, int, int]]` is not assignable to parameter `segments` with type `Sequence[ArrayLike]` in function `matplotlib.collections.LineCollection.__init__` [bad-argument-type]
- ERROR colour/plotting/temperature.py:500:17-506:18: Argument `ndarray[tuple[int, int, int], dtype[Unknown]]` is not assignable to parameter `segments` with type `Sequence[ArrayLike]` in function `matplotlib.collections.LineCollection.__init__` [bad-argument-type]
+ ERROR colour/plotting/tests/test_common.py:327:35-48: Object of class `Axes` has no attribute `get_zlim` [missing-attribute]
+ ERROR colour/plotting/volume.py:636:44-48: Argument `Axes` is not assignable to parameter `axes` with type `Axes3D | None` in function `nadir_grid` [bad-argument-type]
+ ERROR colour/plotting/volume.py:646:5-26: Object of class `Axes` has no attribute `add_collection3d` [missing-attribute]
poetry (https://github.com/python-poetry/poetry)
- ERROR src/poetry/console/commands/add.py:159:25-44: Object of class `NoneType` has no attribute `get` [missing-attribute]
- ERROR src/poetry/console/commands/add.py:170:17-50: `in` is not supported between `Literal['dependencies']` and `None` [not-iterable]
- ERROR src/poetry/console/commands/add.py:171:20-62: `in` is not supported between `Literal['optional-dependencies']` and `None` [not-iterable]
- ERROR src/poetry/console/commands/add.py:175:39-58: Object of class `NoneType` has no attribute `get` [missing-attribute]
- ERROR src/poetry/console/commands/add.py:179:39-58: Object of class `NoneType` has no attribute `get` [missing-attribute]
- ERROR src/poetry/console/commands/add.py:366:20-66: `not in` is not supported between `Literal['optional-dependencies']` and `None` [not-iterable]
- ERROR src/poetry/console/commands/add.py:367:21-61: Cannot set item in `None` [unsupported-operation]
- ERROR src/poetry/console/commands/add.py:368:36-76: `None` is not subscriptable [unsupported-operation]
- ERROR src/poetry/console/commands/add.py:369:21-61: `None` is not subscriptable [unsupported-operation]
- ERROR src/poetry/console/commands/add.py:370:18-55: `not in` is not supported between `Literal['dependencies']` and `None` [not-iterable]
- ERROR src/poetry/console/commands/add.py:371:17-48: Cannot set item in `None` [unsupported-operation]
- ERROR src/poetry/installation/executor.py:378:46-59: Object of class `NoneType` has no attribute `is_verbose` [missing-attribute]
- ERROR src/poetry/installation/executor.py:387:21-34: Object of class `NoneType` has no attribute `write_line` [missing-attribute]
- ERROR src/poetry/installation/executor.py:388:21-34: Object of class `NoneType` has no attribute `write_line` [missing-attribute]
- ERROR src/poetry/installation/executor.py:389:21-34: Object of class `NoneType` has no attribute `write_line` [missing-attribute]
- ERROR src/poetry/puzzle/solver.py:502:51-504:28: Object of class `NoneType` has no attribute `union` [missing-attribute]
paasta (https://github.com/yelp/paasta)
+ ERROR paasta_tools/contrib/rightsizer_soaconfigs_update.py:215:39-54: No matching overload found for function `min` called with arguments: (Literal[1], float) [no-matching-overload]
- ERROR paasta_tools/kubernetes_tools.py:1380:20-51: Object of class `NoneType` has no attribute `get` [missing-attribute]
- ERROR paasta_tools/kubernetes_tools.py:1381:23-54: Object of class `NoneType` has no attribute `get` [missing-attribute]
- ERROR paasta_tools/kubernetes_tools.py:1382:34-65: Object of class `NoneType` has no attribute `get` [missing-attribute]
- ERROR paasta_tools/kubernetes_tools.py:2393:13-39: Object of class `NoneType` has no attribute `pod_anti_affinity` [missing-attribute]
cibuildwheel (https://github.com/pypa/cibuildwheel)
- ERROR cibuildwheel/venv.py:29:19-43: `None` is not subscriptable [unsupported-operation]
- ERROR cibuildwheel/venv.py:30:15-35: `None` is not subscriptable [unsupported-operation]
streamlit (https://github.com/streamlit/streamlit)
- ERROR lib/streamlit/vendor/pympler/asizeof.py:1528:17-20: No matching overload found for function `iter` called with arguments: (object | tuple[()] | Any) [no-matching-overload]
+ ERROR lib/streamlit/vendor/pympler/asizeof.py:1528:17-20: No matching overload found for function `iter` called with arguments: (object | tuple[()] | Unknown) [no-matching-overload]
- ERROR lib/streamlit/vendor/pympler/asizeof.py:2107:22-41: Argument `object | tuple[()] | Any` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `tuple.__new__` [bad-argument-type]
+ ERROR lib/streamlit/vendor/pympler/asizeof.py:2107:22-41: Argument `object | tuple[()] | Unknown` is not assignable to parameter `iterable` with type `Iterable[@_]` in function `tuple.__new__` [bad-argument-type]
- ERROR lib/streamlit/vendor/pympler/asizeof.py:2310:20-43: No matching overload found for function `sum` called with arguments: (object | tuple[()] | Any) [no-matching-overload]
+ ERROR lib/streamlit/vendor/pympler/asizeof.py:2310:20-43: No matching overload found for function `sum` called with arguments: (object | tuple[()] | Unknown) [no-matching-overload]
- ERROR lib/tests/streamlit/web/server/server_test_case.py:89:13-47: Argument `Literal[b'']` is not assignable to parameter `url` with type `HTTPRequest | str` in function `tornado.websocket.websocket_connect` [bad-argument-type]
hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- INFO tests/annotations/declarations.py:995:16-56: revealed type: Any [reveal-type]
+ INFO tests/annotations/declarations.py:995:16-56: revealed type: Unknown [reveal-type]
archinstall (https://github.com/archlinux/archinstall)
- ERROR archinstall/lib/models/application.py:142:55-59: Argument `Any | None` is not assignable to parameter `value` with type `str` in function `enum.StrEnum.__new__` [bad-argument-type]
scikit-learn (https://github.com/scikit-learn/scikit-learn)
- ERROR sklearn/_loss/loss.py:1033:9-24: Class member `HalfMultinomialLoss.in_y_true_range` overrides parent class `BaseLoss` in an inconsistent manner [bad-override]
- ERROR sklearn/cluster/_affinity_propagation.py:533:9-537:10: Cannot unpack tuple[list[Unknown] | ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]] | ndarray[tuple[Any, ...], dtype[Unknown]]] | tuple[list[Unknown] | ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[Any, ...], dtype[signedinteger[_NBitIntP]]] | ndarray[tuple[Any, ...], dtype[Unknown]], int] | tuple[ndarray, ndarray] | tuple[ndarray, ndarray, Literal[0]] | tuple[Unknown, Unknown] | tuple[Unknown, Unknown, Literal[0]] (of size 2) into 3 values [bad-unpacking]
+ ERROR sklearn/cluster/_affinity_propagation.py:533:9-537:10: Cannot unpack tuple[list[Unknown] | ndarray[tuple[Any, ...], dtype[Unknown]], ndarray[tuple[Any, ...], dtype[Unknown]] | Unknown] | tuple[list[Unknown] | ndarray[tuple[Any, ...], dtype[Unknown]], ndarray[tuple[Any, ...], dtype[Unknown]] | Unknown, int] | tuple[ndarray, ndarray] | tuple[ndarray, ndarray, Literal[0]] | tuple[Unknown, Unknown] | tuple[Unknown, Unknown, Literal[0]] (of size 2) into 3 values [bad-unpacking]
- ERROR sklearn/cluster/_agglomerative.py:685:13-26: Object of class `ndarray` has no attribute `append` [missing-attribute]
- ERROR sklearn/cluster/_agglomerative.py:1084:32-47: `int | Unknown` is not assignable to attribute `n_clusters_` with type `signedinteger[_NBitIntP]` [bad-assignment]
- ERROR sklearn/cluster/_bicluster.py:613:48-85: No matching overload found for function `numpy.lib._shape_base_impl.apply_along_axis` called with arguments: ((v: Unknown) -> ndarray[tuple[int], dtype[float64]] | Unknown, axis=Literal[1], arr=Unknown) [no-matching-overload]
+ ERROR sklearn/cluster/_bicluster.py:613:48-85: No matching overload found for function `numpy.lib._shape_base_impl.apply_along_axis` called with arguments: ((v: Unknown) -> Unknown, axis=Literal[1], arr=Unknown) [no-matching-overload]
- ERROR sklearn/cluster/tests/test_hierarchical.py:88:9-49: Cannot unpack tuple[ndarray | Unknown, int, int | Any, None] | tuple[ndarray | Unknown, int, int | Any, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], Unknown] | Unknown (of size 5) into 4 values [bad-unpacking]
+ ERROR sklearn/cluster/tests/test_hierarchical.py:88:9-49: Cannot unpack tuple[ndarray | Unknown, int, Unknown, None] | tuple[ndarray | Unknown, int, Unknown, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | Unknown (of size 5) into 4 values [bad-unpacking]
- ERROR sklearn/cluster/tests/test_hierarchical.py:119:21-56: Cannot unpack tuple[ndarray | Unknown, int, int | Any, None] | tuple[ndarray | Unknown, int, int | Any, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], Unknown] | Unknown (of size 5) into 4 values [bad-unpacking]
- ERROR sklearn/cluster/tests/test_hierarchical.py:133:9-44: Cannot unpack tuple[ndarray | Unknown, int, int | Any, None] | tuple[ndarray | Unknown, int, int | Any, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], Unknown] | Unknown (of size 5) into 4 values [bad-unpacking]
+ ERROR sklearn/cluster/tests/test_hierarchical.py:119:21-56: Cannot unpack tuple[ndarray | Unknown, int, Unknown, None] | tuple[ndarray | Unknown, int, Unknown, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | Unknown (of size 5) into 4 values [bad-unpacking]
+ ERROR sklearn/cluster/tests/test_hierarchical.py:133:9-44: Cannot unpack tuple[ndarray | Unknown, int, Unknown, None] | tuple[ndarray | Unknown, int, Unknown, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | Unknown (of size 5) into 4 values [bad-unpacking]
- ERROR sklearn/cluster/tests/test_hierarchical.py:352:13-37: Cannot unpack tuple[ndarray | Unknown, int, int | Any, None] | tuple[ndarray | Unknown, int, int | Any, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], Unknown] | Unknown (of size 5) into 4 values [bad-unpacking]
+ ERROR sklearn/cluster/tests/test_hierarchical.py:352:13-37: Cannot unpack tuple[ndarray | Unknown, int, Unknown, None] | tuple[ndarray | Unknown, int, Unknown, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | Unknown (of size 5) into 4 values [bad-unpacking]
- ERROR sklearn/cluster/tests/test_hierarchical.py:385:5-29: Cannot unpack tuple[ndarray | Unknown, int, int | Any, None] | tuple[ndarray | Unknown, int, int | Any, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], Unknown] (of size 5) into 4 values [bad-unpacking]
+ ERROR sklearn/cluster/tests/test_hierarchical.py:385:5-29: Cannot unpack tuple[ndarray | Unknown, int, Unknown, None] | tuple[ndarray | Unknown, int, Unknown, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] (of size 5) into 4 values [bad-unpacking]
- ERROR sklearn/cluster/tests/test_hierarchical.py:751:9-60: Cannot unpack tuple[ndarray | Unknown, int, int | Any, None] | tuple[ndarray | Unknown, int, int | Any, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, int | Any, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], ndarray[tuple[int], dtype[float64]] | ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]] | tuple[Unknown, Unknown, Unknown, ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]], Unknown] | Unknown (of size 4) into 5 values [bad-unpacking]
+ ERROR sklearn/cluster/tests/test_hierarchical.py:751:9-60: Cannot unpack tuple[ndarray | Unknown, int, Unknown, None] | tuple[ndarray | Unknown, int, Unknown, None, ndarray[tuple[Any, ...], dtype[float64]] | Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown] | tuple[ndarray[tuple[Any, ...], dtype[Unknown]], int, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown] | tuple[Unknown, Unknown, Unknown, Unknown, Unknown] | Unknown (of size 4) into 5 values [bad-unpacking]
- WARN sklearn/datasets/_base.py:1007:5-17: `numpy.ndarray.shape` is deprecated [deprecated]
- WARN sklearn/datasets/_lfw.py:479:5-16: `numpy.ndarray.shape` is deprecated [deprecated]
- ], tuple[Unknown, ndarray[tuple[Any, ...], dtype[float64]], ndarray[tuple[int, int], dtype[float64]]]) [no-matching-overload]
+ ], tuple[Unknown, ndarray[tuple[Any, ...], dtype[float64]], Unknown]) [no-matching-overload]
- ERROR sklearn/decomposition/_lda.py:526:32-67: `float | ndarray[tuple[Any, ...], dtype[float64]] | Unknown` is not assignable to attribute `components_` with type `ndarray[tuple[Any, ...], dtype[float64]]` [bad-assignment]
- ERROR sklearn/decomposition/_nmf.py:1223:28-81: No matching overload found for function `numpy._core.numeric.full` called with arguments: (tuple[Unknown, str | Unknown], Any, dtype=Unknown) [no-matching-overload]
+ ERROR sklearn/decomposition/_nmf.py:1223:28-81: No matching overload found for function `numpy._core.numeric.full` called with arguments: (tuple[Unknown, str | Unknown], Unknown, dtype=Unknown) [no-matching-overload]
- ERROR sklearn/decomposition/_nmf.py:2045:20-74: No matching overload found for function `numpy._core.numeric.full` called with arguments: (tuple[Unknown, str | Unknown], Any, dtype=Unknown) [no-matching-overload]
+ ERROR sklearn/decomposition/_nmf.py:2045:20-74: No matching overload found for function `numpy._core.numeric.full` called with arguments: (tuple[Unknown, str | Unknown], Unknown, dtype=Unknown) [no-matching-overload]
- ERROR sklearn/dummy.py:308:28-314:18: No matching overload found for function `numpy.lib._shape_base_impl.tile` called with arguments: (list[ndarray[tuple[Any, ...], dtype[Unknown]] | Unknown], list[Integral | int | Unknown]) [no-matching-overload]
+ ERROR sklearn/dummy.py:308:28-314:18: No matching overload found for function `numpy.lib._shape_base_impl.tile` called with arguments: (list[Unknown], list[Integral | int | Unknown]) [no-matching-overload]
- ERROR sklearn/ensemble/_gb.py:2192:9-14: Class member `GradientBoostingRegressor.apply` overrides parent class `BaseGradientBoosting` in an inconsistent manner [bad-override]
- ERROR sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py:238:25-39: Cannot index into `ndarray[tuple[int, int], dtype[float64]]` [bad-index]
- ERROR sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py:238:41-59: Cannot index into `ndarray[tuple[Any, ...], dtype[float64]]` [bad-index]
- ERROR sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py:239:25-40: Cannot index into `ndarray[tuple[int, int], dtype[float64]]` [bad-index]
- ERROR sklearn/ensemble/_hist_gradient_boosting/tests/test_histogram.py:239:42-61: Cannot index into `ndarray[tuple[Any, ...], dtype[float64]]` [bad-index]
- ERROR sklearn/ensemble/_weight_boosting.py:669:13-23: Cannot index into `float` [bad-index]
- ERROR sklearn/ensemble/_weight_boosting.py:669:13-23: Cannot set item in `float` [unsupported-operation]
- ERROR sklearn/ensemble/_weight_boosting.py:670:20-28: Object of class `float` has no attribute `sum` [missing-attribute]
- ERROR sklearn/ensemble/tests/test_weight_boosting.py:70:12-42: Object of class `float` has no attribute `shape` [missing-attribute]
- ERROR sklearn/ensemble/tests/test_weight_boosting.py:91:12-50: Object of class `float` has no attribute `shape` [missing-attribute]
- ERROR sklearn/feature_selection/tests/test_base.py:70:28-45: Object of class `list` has no attribute `toarray`
+ ERROR sklearn/feature_selection/tests/test_base.py:70:28-45: Object of class `list` has no attribute `toarray` [missing-attribute]
- Object of class `ndarray` has no attribute `toarray` [missing-attribute]
+ ERROR sklearn/feature_selection/tests/test_feature_select.py:398:12-25: Object of class `SparseABC` has no attribute `shape` [missing-attribute]
+ ERROR sklearn/feature_selection/tests/test_feature_select.py:399:24-48: Cannot index into `SparseABC` [bad-index]
- ERROR sklearn/feature_selection/tests/test_base.py:106:30-49: Object of class `ndarray` has no attribute `toarray` [missing-attribute]
+ ERROR sklearn/feature_selection/tests/test_feature_select.py:401:12-23: Object of class `SparseABC` has no attribute `nnz` [missing-attribute]
- ERROR sklearn/feature_selection/tests/test_rfe.py:117:36-54: Object of class `list` has no attribute `toarray`
+ ERROR sklearn/feature_selection/tests/test_rfe.py:117:36-54: Object of class `list` has no attribute `toarray` [missing-attribute]
- Object of class `ndarray` has no attribute `toarray` [missing-attribute]
- ERROR sklearn/feature_selection/tests/test_rfe.py:211:24-42: Object of class `list` has no attribute `toarray`
+ ERROR sklearn/feature_selection/tests/test_rfe.py:211:24-42: Object of class `list` has no attribute `toarray` [missing-attribute]
- Object of class `ndarray` has no attribute `toarray` [missing-attribute]
- ERROR sklearn/feature_selection/tests/test_rfe.py:255:24-42: Object of class `list` has no attribute `toarray`
+ ERROR sklearn/feature_selection/tests/test_rfe.py:255:24-42: Object of class `list` has no attribute `toarray` [missing-attribute]
- Object of class `ndarray` has no attribute `toarray` [missing-attribute]
- ERROR sklearn/feature_selection/tests/test_rfe.py:262:24-42: Object of class `list` has no attribute `toarray`
+ ERROR sklearn/feature_selection/tests/test_rfe.py:262:24-42: Object of class `list` has no attribute `toarray` [missing-attribute]
- Object of class `ndarray` has no attribute `toarray` [missing-attribute]
- ERROR sklearn/gaussian_process/_gpc.py:288:31-55: `-` is not supported between `None` and `ndarray[tuple[Any, ...], dtype[float64]]` [unsupported-operation]
- ERROR sklearn/gaussian_process/_gpc.py:403:23-41: `-` is not supported between `None` and `ndarray[tuple[Any, ...], dtype[float64]]` [unsupported-operation]
- ERROR sklearn/gaussian_process/_gpc.py:436:36-60: `-` is not supported between `None` and `ndarray[tuple[Any, ...], dtype[float64]]` [unsupported-operation]
- ERROR sklearn/gaussian_process/_gpc.py:475:26-44: `-` is not supported between `None` and `ndarray[tuple[Any, ...], dtype[float64]]` [unsupported-operation]
- ERROR sklearn/gaussian_process/_gpr.py:530:57-62: Argument `ndarray[tuple[Any, ...], dtype[complex128 | Any]] | ndarray | ndarray[tuple[Any, ...], dtype[Unknown]] | tuple[Unknown, ndarray[tuple[Any, ...], dtype[Unknown]]] | Unknown` is not assignable to parameter `cov` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multivariate_normal` [bad-argument-type]
+ ERROR sklearn/gaussian_process/_gpr.py:530:57-62: Argument `ndarray[tuple[Any, ...], dtype[complex128 | Any]] | ndarray[tuple[Any, ...], dtype[Unknown]] | tuple[Unknown, ndarray[tuple[Any, ...], dtype[Unknown]]] | Unknown` is not assignable to parameter `cov` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multivariate_normal` [bad-argument-type]
- ERROR sklearn/gaussian_process/_gpr.py:534:40-58: Argument `ndarray[tuple[Any, ...], dtype[complex128 | Any]] | ndarray | ndarray[tuple[Any, ...], dtype[Unknown]] | Unknown` is not assignable to parameter `cov` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multivariate_normal` [bad-argument-type]
+ ERROR sklearn/gaussian_process/_gpr.py:534:40-58: Argument `ndarray[tuple[Any, ...], dtype[complex128 | Any]] | ndarray[tuple[Any, ...], dtype[Unknown]] | Unknown` is not assignable to parameter `cov` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | floating | integer]]] | _NestedSequence[float] | _SupportsArray[dtype[numpy.bool | floating | integer]] | float` in function `numpy.random.mtrand.RandomState.multivariate_normal` [bad-argument-type]
- ERROR sklearn/gaussian_process/kernels.py:141:9-15: Class member `Hyperparameter.__eq__` overrides parent class `Hyperparameter` in an inconsistent manner [bad-override]
- ERROR sklearn/gaussian_process/kernels.py:639:9-15: Class member `CompoundKernel.__eq__` overrides parent class `Kernel` in an inconsistent manner [bad-override]
- ERROR sklearn/gaussian_process/kernels.py:646:9-22: Class member `CompoundKernel.is_stationary` overrides parent class `Kernel` in an inconsistent manner [bad-override]
- ERROR sklearn/gaussian_process/kernels.py:651:9-30: Class member `CompoundKernel.requires_vector_input` overrides parent class `Kernel` in an inconsistent manner [bad-override]
- ERROR sklearn/gaussian_process/kernels.py:1292:9-13: Class member `ConstantKernel.diag` overrides parent class `Kernel` in an inconsistent manner [bad-override]
- ERROR sklearn/gaussian_process/kernels.py:1415:9-13: Class member `WhiteKernel.diag` overrides parent class `Kernel` in an inconsistent manner [bad-override]
- ERROR sklearn/gaussian_process/tests/test_gpr.py:294:18-36: `*` is not supported between `tuple[Unknown, ndarray[tuple[Any, ...], dtype[Unknown]]]` and `floating` [unsupported-operation]
- ERROR sklearn/gaussian_process/tests/test_gpr.py:301:13-29: `*` is not supported between `tuple[Unknown, ndarray[tuple[Any, ...], dtype[Unknown]]]` and `floating` [unsupported-operation]
- ERROR sklearn/gaussian_process/tests/test_kernels.py:195:10-28: `*` is not supported between `float` and `tuple[Unknown, ndarray[tuple[int, int, int], dtype[float64]]]` [unsupported-operation]
- ERROR sklearn/gaussian_process/tests/test_kernels.py:200:10-28: `*` is not supported between `float` and `tuple[Unknown, ndarray[tuple[int, int, int], dtype[float64]]]` [unsupported-operation]
- ERROR sklearn/gaussian_process/tests/test_kernels.py:308:34-39: Argument `tuple[Unknown, ndarray[tuple[int, int, int], dtype[float64]]] | tuple[Unknown, Unknown] | Unknown | None` is not assignable to parameter `desired` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | number]]] | _NestedSequence[_SupportsArray[dtype[object_]]] | _NestedSequence[complex] | _SupportsArray[dtype[numpy.bool | number]] | _SupportsArray[dtype[object_]] | complex` in function `numpy.testing._private.utils.assert_array_almost_equal` [bad-argument-type]
- ERROR sklearn/gaussian_process/tests/test_kernels.py:322:35-37: Argument `tuple[Unknown, ndarray[tuple[int, int, int], dtype[float64]]] | tuple[Unknown, Unknown] | Unknown | None` is not assignable to parameter `desired` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | number]]] | _NestedSequence[_SupportsArray[dtype[object_]]] | _NestedSequence[complex] | _SupportsArray[dtype[numpy.bool | number]] | _SupportsArray[dtype[object_]] | complex` in function `numpy.testing._private.utils.assert_array_almost_equal` [bad-argument-type]
+ ERROR sklearn/gaussian_process/tests/test_kernels.py:308:34-39: Argument `tuple[Unknown, Unknown] | Unknown | None` is not assignable to parameter `desired` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | number]]] | _NestedSequence[_SupportsArray[dtype[object_]]] | _NestedSequence[complex] | _SupportsArray[dtype[numpy.bool | number]] | _SupportsArray[dtype[object_]] | complex` in function `numpy.testing._private.utils.assert_array_almost_equal` [bad-argument-type]
+ ERROR sklearn/gaussian_process/tests/test_kernels.py:322:35-37: Argument `tuple[Unknown, Unknown] | Unknown | None` is not assignable to parameter `desired` with type `_NestedSequence[_SupportsArray[dtype[numpy.bool | number]]] | _NestedSequence[_SupportsArray[dtype[object_]]] | _NestedSequence[complex] | _SupportsArray[dtype[numpy.bool | number]] | _SupportsArray[dtype[object_]] | complex` in function `numpy.testing._private.utils.assert_array_almost_equal` [bad-argument-type]
- ERROR sklearn/impute/_base.py:663:27-665:24: Cannot index into `ndarray[tuple[int], dtype[signedinteger[_NBitIntP]]]` [bad-index]
- ERROR sklearn/impute/_knn.py:211:29-68: No matching overload found for function `numpy.lib._function_base_impl.average` called with arguments: (MaskedArray[tuple[Any, ...], dtype[Unknown]], axis=Literal[1], weights=object | Unknown) [no-matching-overload]
+ ERROR sklearn/impute/_knn.py:211:29-68: No matching overload found for function `numpy.lib._function_base_impl.average` called with arguments: (Unknown, axis=Literal[1], weights=object | Unknown) [no-matching-overload]
- ERROR sklearn/linear_model/_glm/_newton_solver.py:185:42-198:10: No matching overload found for function `scipy.optimize._minimize.minimize` called with arguments: ((self: LinearModelLoss, coef: Unknown, X: Unknown, y: Unknown, sample_weight: Unknown | None = None, l2_reg_strength: float | Unknown = ..., n_threads: int | Unknown = 1, raw_prediction: Unknown | None = None) -> tuple[float, ndarray[tuple[int], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]] | Unknown] | Unknown, Unknown, method=Literal['L-BFGS-B'], jac=Literal[True], options=dict[str | Unknown, float | float64 | int | Unknown], args=tuple[Unknown, Unknown, Unknown, float | Unknown, int | Unknown]) [no-matching-overload]
+ ERROR sklearn/linear_model/_glm/_newton_solver.py:185:42-198:10: No matching overload found for function `scipy.optimize._minimize.minimize` called with arguments: ((self: LinearModelLoss, coef: Unknown, X: Unknown, y: Unknown, sample_weight: Unknown | None = None, l2_reg_strength: float | Unknown = ..., n_threads: int | Unknown = 1, raw_prediction: Unknown | None = None) -> tuple[float, Unknown] | Unknown, Unknown, method=Literal['L-BFGS-B'], jac=Literal[True], options=dict[str | Unknown, float | float64 | int | Unknown], args=tuple[Unknown, Unknown, Unknown, float | Unknown, int | Unknown]) [no-matching-overload]
- ERROR sklearn/linear_model/_glm/glm.py:265:46-281:14: No matching overload found for function `scipy.optimize._minimize.minimize` called with arguments: ((self: LinearModelLoss, coef: Unknown, X: Unknown, y: Unknown, sample_weight: Unknown | None = None, l2_reg_strength: float | Unknown = ..., n_threads: int | Unknown = 1, raw_prediction: Unknown | None = None) -> tuple[float, ndarray[tuple[int], dtype[float64]] | ndarray[tuple[int, int], dtype[float64]] | Unknown], ndarray[tuple[Any, ...], dtype[Unknown]] | Unknown, method=Literal['L-BFGS-B'], jac=Literal[True], options=dict[str | Unknown, float | float64 | int | Unknown], args=tuple[str | Unknown, Unknown, Unknown | None, float | Unknown, Unknown]) [no-matching-overload]
... (truncated 129 lines) ...
optuna (https://github.com/optuna/optuna)
- ERROR optuna/_gp/search_space.py:109:42-113:22: No matching overload found for function `numpy._core.multiarray.arange` called with arguments: (Any, Unknown, ndarray) [no-matching-overload]
- ERROR optuna/_gp/search_space.py:114:43-63: Argument `ndarray[tuple[Any, ...], dtype[signedinteger[_64Bit]]]` is not assignable to parameter `value` with type `int` in function `enum.IntEnum.__new__` [bad-argument-type]
- ERROR optuna/_gp/search_space.py:116:26-40: Argument `ndarray` is not assignable to parameter `step` with type `float` in function `_normalize_one_param` [bad-argument-type]
- ERROR optuna/_hypervolume/hssp.py:95:26-52: No matching overload found for function `max` called with arguments: (ndarray, float | Unknown) [no-matching-overload]
- ERROR optuna/_transform.py:160:55-75: Argument `signedinteger[_NBitIntP] | Unknown` is not assignable to parameter `param_value_in_internal_repr` with type `float` in function `optuna.distributions.CategoricalDistribution.to_external_repr` [bad-argument-type]
- ERROR optuna/testing/storages.py:122:44-124:14: `Any | None` is not assignable to attribute `_redis` with type `Redis[bytes]` [bad-assignment]
... (truncated 243 lines) ...``` |
Primer Diff Classification❌ 16 regression(s) | ✅ 37 improvement(s) | ➖ 3 neutral | 56 project(s) total 16 regression(s) across kornia, scrapy, pandas, pip, tornado, scipy-stubs, materialize, core, trio, scipy, colour, streamlit, scikit-learn, spark, aiortc, rich. error kinds:
Detailed analysis❌ Regression (16)kornia (+1)
scrapy (+1, -5)
pandas (+236, -494)
pip (+1, -2)
tornado (+2)
scipy-stubs (+65)
materialize (-2)
core (+13, -35)
trio (+1, -1)
scipy (+4, -3)
colour (+11, -12)
streamlit (+3, -4)
scikit-learn (+84, -115)
spark (+1, -5)
aiortc (+2)
rich (+1)
✅ Improvement (37)spack (-18)
parso (+1, -3)
dd-trace-py (-11)
pydantic (-1)
freqtrade (-8)
ibis (+1, -2)
aioredis (-1)
comtypes (-1)
starlette (-2)
zulip (-3)
hydpy (-1)
egglog-python (-6)
porcupine (-1)
cwltool (-2)
aiohttp (-1)
mkosi (-2)
mitmproxy (-16)
poetry (-16)
paasta (+1, -4)
cibuildwheel (-2)
archinstall (-1)
optuna (-7)
bandersnatch (-1)
kopf (-4)
static-frame (-14)
psycopg (-1)
schemathesis (-1)
steam.py (-1)
pytest (-1)
openlibrary (-46)
black (-1)
cloud-init (+1, -19)
jax (-11)
sphinx (-1)
xarray (+6, -39)
rotki (-2)
discord.py (+1, -11)
➖ Neutral (3)beartype (+1, -1)
hydra-zen (+1, -1)
meson (+8, -10)
Suggested FixSummary: The PR made overload resolution overly strict, causing false positives on common Python patterns like max(0, float_value) that work at runtime and are accepted by other type checkers. 1. In
2. In
Was this helpful? React with 👍 or 👎 Classification by primer-classifier (3 heuristic, 53 LLM) |
Summary: Fixes #2552.
Differential Revision: D95512431