mypy icon indicating copy to clipboard operation
mypy copied to clipboard

Fix binding difference between callables and callback protocols

Open hauntsaninja opened this issue 2 years ago • 10 comments

Fixes https://github.com/python/mypy/pull/15926#discussion_r1303520040, fixes #16200

hauntsaninja avatar Aug 30 '23 02:08 hauntsaninja

Diff from mypy_primer, showing the effect of this PR on open source code:

mitmproxy (https://github.com/mitmproxy/mitmproxy)
+ mitmproxy/tools/console/keymap.py:87: error: "Callable[[VarArg(Hashable), KwArg(Hashable)], Binding | None]" has no attribute "cache_clear"  [attr-defined]
+ mitmproxy/tools/console/flowview.py:68: error: "Callable[[VarArg(Hashable), KwArg(Hashable)], Any]" has no attribute "cache_clear"  [attr-defined]
+ mitmproxy/tools/console/flowlist.py:59: error: "Callable[[VarArg(Hashable), KwArg(Hashable)], tuple[FlowItem | None, int | None]]" has no attribute "cache_clear"  [attr-defined]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/arrays/_ranges.py:94: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:94: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:94: note: Left operand is of type "int | signedinteger[_64Bit] | unsignedinteger[_64Bit]"
+ pandas/core/arrays/_ranges.py:136: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:150: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/arrays/_ranges.py:150: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:150: note:     def __call__(self) -> bool_
+ pandas/core/arrays/_ranges.py:150: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/arrays/_ranges.py:150: note:     def __call__(self) -> Any
+ pandas/core/arrays/_ranges.py:150: error: Unsupported operand types for <= ("int" and "unsignedinteger[_64Bit]")  [operator]
+ pandas/core/arrays/_ranges.py:178: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:181: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:201: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:203: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:203: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:203: note:     def __call__(self) -> bool_
+ pandas/core/arrays/_ranges.py:203: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/arrays/_ranges.py:203: note:     def __call__(self) -> Any
+ pandas/core/arrays/_ranges.py:204: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:204: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:204: note:     def __call__(self) -> bool_
+ pandas/core/arrays/_ranges.py:204: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/arrays/_ranges.py:204: note:     def __call__(self) -> Any
+ pandas/core/arrays/_ranges.py:204: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/util/_validators.py:443: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/util/_validators.py:443: note: Possible overload variants:
+ pandas/util/_validators.py:443: note:     def __call__(self) -> bool_
+ pandas/util/_validators.py:443: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/util/_validators.py:443: note:     def __call__(self) -> Any
+ pandas/util/_validators.py:443: note: Left operand is of type "int | integer[Any]"
+ pandas/util/_validators.py:444: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/util/_validators.py:444: note: Left operand is of type "int | integer[Any]"
+ pandas/core/util/hashing.py:76: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/nanops.py:731: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:731: note: Possible overload variants:
+ pandas/core/nanops.py:731: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:731: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:731: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:731: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1264: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1264: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1272: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1272: note: Possible overload variants:
+ pandas/core/nanops.py:1272: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1272: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1272: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:1272: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1275: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1275: note: Possible overload variants:
+ pandas/core/nanops.py:1275: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1275: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1275: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:1275: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1345: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1345: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1346: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1346: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1347: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1347: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1359: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1359: note: Possible overload variants:
+ pandas/core/nanops.py:1359: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1359: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1359: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:1359: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1373: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1373: note: Possible overload variants:
+ pandas/core/nanops.py:1373: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1373: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1373: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:1373: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1565: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1565: note: Possible overload variants:
+ pandas/core/nanops.py:1565: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1565: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1565: note:     def __call__(self) -> Any
+ pandas/core/dtypes/cast.py:1755: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/dtypes/cast.py:1755: note: Right operand is of type "int | integer[Any] | float"
+ pandas/core/dtypes/cast.py:1755: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/dtypes/cast.py:1755: note: Possible overload variants:
+ pandas/core/dtypes/cast.py:1755: note:     def __call__(self) -> bool_
+ pandas/core/dtypes/cast.py:1755: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/dtypes/cast.py:1755: note:     def __call__(self) -> Any
+ pandas/core/dtypes/cast.py:1755: note: Left operand is of type "int | integer[Any] | float"
+ pandas/core/missing.py:215: error: Unsupported operand types for - ("int" and "signedinteger[Any]")  [operator]
+ pandas/core/arrays/datetimelike.py:1350: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1350: note: Left operand is of type "int | integer[Any]"
+ pandas/core/arrays/datetimelike.py:1408: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1408: note: Left operand is of type "int | integer[Any]"
+ pandas/io/parsers/readers.py:555: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/io/parsers/readers.py:555: note: Possible overload variants:
+ pandas/io/parsers/readers.py:555: note:     def __call__(self) -> bool_
+ pandas/io/parsers/readers.py:555: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/io/parsers/readers.py:555: note:     def __call__(self) -> Any
+ pandas/io/parsers/readers.py:555: note: Left operand is of type "int | integer[Any]"
+ pandas/io/parsers/python_parser.py:1378: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/io/parsers/python_parser.py:1378: note: Possible overload variants:
+ pandas/io/parsers/python_parser.py:1378: note:     def __call__(self) -> bool_
+ pandas/io/parsers/python_parser.py:1378: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/io/parsers/python_parser.py:1378: note:     def __call__(self) -> Any
+ pandas/io/parsers/python_parser.py:1378: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1607: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/indexing.py:1607: note: Possible overload variants:
+ pandas/core/indexing.py:1607: note:     def __call__(self) -> bool_
+ pandas/core/indexing.py:1607: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/indexing.py:1607: note:     def __call__(self) -> Any

... (truncated 114 lines) ...

pip (https://github.com/pypa/pip)
+ src/pip/_internal/metadata/base.py:406: error: Invalid self argument "BaseDistribution" to attribute function "_metadata_cached" with type "Callable[[VarArg(Hashable), KwArg(Hashable)], Message]"  [misc]

arviz (https://github.com/arviz-devs/arviz)
+ arviz/tests/base_tests/test_stats.py:381: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]

paroxython (https://github.com/laowantong/paroxython)
+ paroxython/assess_costs.py:89: error: "Callable[[VarArg(Hashable), KwArg(Hashable)], float]" has no attribute "cache_clear"  [attr-defined]

httpx-caching (https://github.com/johtso/httpx-caching)
+ tests/_async/test_expires_heuristics.py:40: error: "Callable[[VarArg(Any), KwArg(Any)], Any]" has no attribute "called"  [attr-defined]

spark (https://github.com/apache/spark)
+ python/pyspark/ml/linalg/__init__.py:634: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ python/pyspark/ml/linalg/__init__.py:634: note: Possible overload variants:
+ python/pyspark/ml/linalg/__init__.py:634: note:     def __call__(self) -> bool_
+ python/pyspark/ml/linalg/__init__.py:634: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ python/pyspark/ml/linalg/__init__.py:634: note:     def __call__(self) -> Any
+ python/pyspark/ml/linalg/__init__.py:639: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ python/pyspark/ml/linalg/__init__.py:639: note: Possible overload variants:
+ python/pyspark/ml/linalg/__init__.py:639: note:     def __call__(self) -> bool_
+ python/pyspark/ml/linalg/__init__.py:639: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ python/pyspark/ml/linalg/__init__.py:639: note:     def __call__(self) -> Any
+ python/pyspark/pandas/indexing.py:1658: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ python/pyspark/pandas/indexing.py:1658: note: Possible overload variants:
+ python/pyspark/pandas/indexing.py:1658: note:     def __call__(self) -> bool_
+ python/pyspark/pandas/indexing.py:1658: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ python/pyspark/pandas/indexing.py:1658: note:     def __call__(self) -> Any
+ python/pyspark/pandas/indexing.py:1658: note: Left operand is of type "int | signedinteger[_64Bit] | signedinteger[_32Bit]"
+ python/pyspark/pandas/indexing.py:1671: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ python/pyspark/pandas/indexing.py:1671: note: Possible overload variants:
+ python/pyspark/pandas/indexing.py:1671: note:     def __call__(self) -> bool_
+ python/pyspark/pandas/indexing.py:1671: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ python/pyspark/pandas/indexing.py:1671: note:     def __call__(self) -> Any
+ python/pyspark/pandas/indexing.py:1671: note: Left operand is of type "int | signedinteger[_64Bit] | signedinteger[_32Bit]"
+ python/pyspark/pandas/base.py:264: error: Too many arguments for "__call__" of "_TD64Div"  [call-arg]

rich (https://github.com/Textualize/rich)
+ rich/segment.py:169: error: Invalid self argument "type[Segment]" to class attribute function "_split_cells" with type "Callable[[VarArg(Hashable), KwArg(Hashable)], tuple[Segment, Segment]]"  [misc]
+ rich/layout.py:74: error: Invalid self argument "_Placeholder" to attribute function "highlighter" with type "Callable[[str | Text], Text]"  [misc]
+ rich/layout.py:74: error: Too many arguments for "__call__" of "Highlighter"  [call-arg]

bokeh (https://github.com/bokeh/bokeh)
+ src/bokeh/util/serialization.py: note: In function "convert_timedelta_type":
+ src/bokeh/util/serialization.py:163:22: error: Too many arguments for "__call__" of "_TD64Div"  [call-arg]
+ src/bokeh/util/serialization.py:210:22: error: Too many arguments for "__call__" of "_TD64Div"  [call-arg]

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/feature_benchmark/filter.py:31: error: Unsupported operand types for * ("int" and "floating[Any]")  [operator]

github-actions[bot] avatar Aug 30 '23 02:08 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/arrays/_ranges.py:94: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:94: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:94: note: Left operand is of type "int | signedinteger[_64Bit] | unsignedinteger[_64Bit]"
+ pandas/core/arrays/_ranges.py:136: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:150: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/arrays/_ranges.py:150: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:150: note:     def __call__(self) -> bool_
+ pandas/core/arrays/_ranges.py:150: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/arrays/_ranges.py:150: note:     def __call__(self) -> Any
+ pandas/core/arrays/_ranges.py:150: error: Unsupported operand types for <= ("int" and "unsignedinteger[_64Bit]")  [operator]
+ pandas/core/arrays/_ranges.py:178: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:181: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:201: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:203: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:203: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:203: note:     def __call__(self) -> bool_
+ pandas/core/arrays/_ranges.py:203: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/arrays/_ranges.py:203: note:     def __call__(self) -> Any
+ pandas/core/arrays/_ranges.py:204: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:204: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:204: note:     def __call__(self) -> bool_
+ pandas/core/arrays/_ranges.py:204: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/arrays/_ranges.py:204: note:     def __call__(self) -> Any
+ pandas/core/arrays/_ranges.py:204: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/util/_validators.py:443: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/util/_validators.py:443: note: Possible overload variants:
+ pandas/util/_validators.py:443: note:     def __call__(self) -> bool_
+ pandas/util/_validators.py:443: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/util/_validators.py:443: note:     def __call__(self) -> Any
+ pandas/util/_validators.py:443: note: Left operand is of type "int | integer[Any]"
+ pandas/util/_validators.py:444: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/util/_validators.py:444: note: Left operand is of type "int | integer[Any]"
+ pandas/core/util/hashing.py:76: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/nanops.py:731: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:731: note: Possible overload variants:
+ pandas/core/nanops.py:731: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:731: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:731: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:731: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1264: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1264: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1272: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1272: note: Possible overload variants:
+ pandas/core/nanops.py:1272: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1272: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1272: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:1272: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1275: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1275: note: Possible overload variants:
+ pandas/core/nanops.py:1275: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1275: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1275: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:1275: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1345: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1345: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1346: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1346: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1347: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1347: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1359: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1359: note: Possible overload variants:
+ pandas/core/nanops.py:1359: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1359: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1359: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:1359: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1373: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1373: note: Possible overload variants:
+ pandas/core/nanops.py:1373: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1373: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1373: note:     def __call__(self) -> Any
+ pandas/core/nanops.py:1373: note: Left operand is of type "floating[Any] | ndarray[Any, dtype[floating[Any]]]"
+ pandas/core/nanops.py:1565: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1565: note: Possible overload variants:
+ pandas/core/nanops.py:1565: note:     def __call__(self) -> bool_
+ pandas/core/nanops.py:1565: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/nanops.py:1565: note:     def __call__(self) -> Any
+ pandas/core/dtypes/cast.py:1755: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/dtypes/cast.py:1755: note: Right operand is of type "int | integer[Any] | float"
+ pandas/core/dtypes/cast.py:1755: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/dtypes/cast.py:1755: note: Possible overload variants:
+ pandas/core/dtypes/cast.py:1755: note:     def __call__(self) -> bool_
+ pandas/core/dtypes/cast.py:1755: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/dtypes/cast.py:1755: note:     def __call__(self) -> Any
+ pandas/core/dtypes/cast.py:1755: note: Left operand is of type "int | integer[Any] | float"
+ pandas/core/missing.py:215: error: Unsupported operand types for - ("int" and "signedinteger[Any]")  [operator]
+ pandas/core/arrays/datetimelike.py:1350: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1350: note: Left operand is of type "int | integer[Any]"
+ pandas/core/arrays/datetimelike.py:1408: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1408: note: Left operand is of type "int | integer[Any]"
+ pandas/io/parsers/readers.py:555: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/io/parsers/readers.py:555: note: Possible overload variants:
+ pandas/io/parsers/readers.py:555: note:     def __call__(self) -> bool_
+ pandas/io/parsers/readers.py:555: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/io/parsers/readers.py:555: note:     def __call__(self) -> Any
+ pandas/io/parsers/readers.py:555: note: Left operand is of type "int | integer[Any]"
+ pandas/io/parsers/python_parser.py:1378: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/io/parsers/python_parser.py:1378: note: Possible overload variants:
+ pandas/io/parsers/python_parser.py:1378: note:     def __call__(self) -> bool_
+ pandas/io/parsers/python_parser.py:1378: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/io/parsers/python_parser.py:1378: note:     def __call__(self) -> Any
+ pandas/io/parsers/python_parser.py:1378: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1607: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ pandas/core/indexing.py:1607: note: Possible overload variants:
+ pandas/core/indexing.py:1607: note:     def __call__(self) -> bool_
+ pandas/core/indexing.py:1607: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ pandas/core/indexing.py:1607: note:     def __call__(self) -> Any

... (truncated 108 lines) ...

arviz (https://github.com/arviz-devs/arviz)
+ arviz/tests/base_tests/test_stats.py:381: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]

spark (https://github.com/apache/spark)
+ python/pyspark/ml/linalg/__init__.py:634: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ python/pyspark/ml/linalg/__init__.py:634: note: Possible overload variants:
+ python/pyspark/ml/linalg/__init__.py:634: note:     def __call__(self) -> bool_
+ python/pyspark/ml/linalg/__init__.py:634: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ python/pyspark/ml/linalg/__init__.py:634: note:     def __call__(self) -> Any
+ python/pyspark/ml/linalg/__init__.py:639: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ python/pyspark/ml/linalg/__init__.py:639: note: Possible overload variants:
+ python/pyspark/ml/linalg/__init__.py:639: note:     def __call__(self) -> bool_
+ python/pyspark/ml/linalg/__init__.py:639: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ python/pyspark/ml/linalg/__init__.py:639: note:     def __call__(self) -> Any
+ python/pyspark/pandas/indexing.py:1658: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ python/pyspark/pandas/indexing.py:1658: note: Possible overload variants:
+ python/pyspark/pandas/indexing.py:1658: note:     def __call__(self) -> bool_
+ python/pyspark/pandas/indexing.py:1658: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ python/pyspark/pandas/indexing.py:1658: note:     def __call__(self) -> Any
+ python/pyspark/pandas/indexing.py:1658: note: Left operand is of type "int | signedinteger[_64Bit] | signedinteger[_32Bit]"
+ python/pyspark/pandas/indexing.py:1671: error: No overload variant of "__call__" of "_ComparisonOp" matches argument type "int"  [operator]
+ python/pyspark/pandas/indexing.py:1671: note: Possible overload variants:
+ python/pyspark/pandas/indexing.py:1671: note:     def __call__(self) -> bool_
+ python/pyspark/pandas/indexing.py:1671: note:     def __call__(self) -> ndarray[Any, dtype[bool_]]
+ python/pyspark/pandas/indexing.py:1671: note:     def __call__(self) -> Any
+ python/pyspark/pandas/indexing.py:1671: note: Left operand is of type "int | signedinteger[_64Bit] | signedinteger[_32Bit]"
+ python/pyspark/pandas/base.py:264: error: Too many arguments for "__call__" of "_TD64Div"  [call-arg]

bokeh (https://github.com/bokeh/bokeh)
+ src/bokeh/util/serialization.py: note: In function "convert_timedelta_type":
+ src/bokeh/util/serialization.py:163:22: error: Too many arguments for "__call__" of "_TD64Div"  [call-arg]
+ src/bokeh/util/serialization.py:210:22: error: Too many arguments for "__call__" of "_TD64Div"  [call-arg]

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/feature_benchmark/filter.py:31: error: Unsupported operand types for * ("int" and "floating[Any]")  [operator]

github-actions[bot] avatar Aug 30 '23 03:08 github-actions[bot]

Hm, it looks like all new errors are technically correct. NumPy stubs take into account current (inconsistent) mypy's behavior. I am not sure what is the best way forward: even if we fix the NumPy stubs, everyone who doesn't pin mypy will get errors until they update NumPy stubs, and vice versa.

ilevkivskyi avatar Aug 30 '23 16:08 ilevkivskyi

would it be feasible to have a per module configuration option that helps to annotate whether or not to do the check,

that way one could opt-in to the new way and the numpy specs could gradually fix their types

ideally this would warn in a way that helps people figure what flags to set at either definition or usage site

RonnyPfannschmidt avatar Jul 10 '24 08:07 RonnyPfannschmidt

im working around this using a Concatenate and mypy_extensions.Arg for now

RonnyPfannschmidt avatar Jul 10 '24 08:07 RonnyPfannschmidt

i thik i now understand the underlying issue

its structurally incorrect to do the first parameters strop off

instead its necessary to be aware of the method descriptor protocol and applying it

so any callable protocol would need a __get__ that returns the correct method version for the callable

and for callables its also a bug to pretend they bind, in particular when __call__ using objects would be valid pass ins that do in fact not run any __get__

i'd like if there was a typing helper for this so one could spell Binding/nonBinding locations for those

RonnyPfannschmidt avatar Jul 10 '24 09:07 RonnyPfannschmidt

i learned that the workaround with mypy_extensions no longer works

RonnyPfannschmidt avatar Jul 10 '24 10:07 RonnyPfannschmidt

Diff from mypy_primer, showing the effect of this PR on open source code:

arviz (https://github.com/arviz-devs/arviz)
+ arviz/tests/base_tests/test_stats.py:384: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/_numba/kernels/min_max_.py:123: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/_numba/kernels/min_max_.py:123: note: Possible overload variants:
+ pandas/core/_numba/kernels/min_max_.py:123: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/_numba/kernels/min_max_.py:123: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/util/_validators.py:441: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/util/_validators.py:441: note: Possible overload variants:
+ pandas/util/_validators.py:441: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/util/_validators.py:441: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/util/_validators.py:441: note: Left operand is of type "int | integer[Any]"
+ pandas/util/_validators.py:442: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/util/_validators.py:442: note: Left operand is of type "int | integer[Any]"
+ pandas/core/util/hashing.py:77: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/nanops.py:723: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:723: note: Possible overload variants:
+ pandas/core/nanops.py:723: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:723: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:723: note: Left operand is of type "floating[Any] | ndarray[tuple[int, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1273: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1273: note: Left operand is of type "floating[Any] | ndarray[tuple[int, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1281: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1281: note: Possible overload variants:
+ pandas/core/nanops.py:1281: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1281: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1281: note: Left operand is of type "floating[Any] | ndarray[tuple[int, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1284: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1284: note: Possible overload variants:
+ pandas/core/nanops.py:1284: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1284: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1284: note: Left operand is of type "floating[Any] | ndarray[tuple[int, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1354: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1354: note: Left operand is of type "floating[Any] | ndarray[tuple[int, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1355: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1355: note: Left operand is of type "floating[Any] | ndarray[tuple[int, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1356: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1356: note: Left operand is of type "floating[Any] | ndarray[tuple[int, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1368: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1368: note: Possible overload variants:
+ pandas/core/nanops.py:1368: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1368: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1368: note: Left operand is of type "floating[Any] | ndarray[tuple[int, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1382: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1382: note: Possible overload variants:
+ pandas/core/nanops.py:1382: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1382: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1382: note: Left operand is of type "floating[Any] | ndarray[tuple[int, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1570: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1570: note: Possible overload variants:
+ pandas/core/nanops.py:1570: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1570: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/dtypes/cast.py:1803: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/dtypes/cast.py:1803: note: Right operand is of type "int | integer[Any] | float"
+ pandas/core/dtypes/cast.py:1803: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "int"  [operator]
+ pandas/core/dtypes/cast.py:1803: note: Possible overload variants:
+ pandas/core/dtypes/cast.py:1803: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/dtypes/cast.py:1803: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/dtypes/cast.py:1803: note: Left operand is of type "int | integer[Any] | float"
+ pandas/core/missing.py:250: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/missing.py:980: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/missing.py:985: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:127: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:141: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/arrays/_ranges.py:141: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:141: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/arrays/_ranges.py:141: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/arrays/_ranges.py:141: error: Unsupported operand types for <= ("int" and "unsignedinteger[_64Bit]")  [operator]
+ pandas/core/arrays/_ranges.py:169: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:172: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:192: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:194: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:194: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:194: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/arrays/_ranges.py:194: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/arrays/_ranges.py:195: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:195: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:195: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/arrays/_ranges.py:195: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/arrays/_ranges.py:195: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/masked.py:214: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/arrays/masked.py:219: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1373: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1373: note: Left operand is of type "int | integer[Any]"
+ pandas/core/arrays/datetimelike.py:1431: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1431: note: Left operand is of type "int | integer[Any]"
+ pandas/io/parsers/readers.py:641: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/io/parsers/readers.py:641: note: Possible overload variants:
+ pandas/io/parsers/readers.py:641: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/io/parsers/readers.py:641: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/io/parsers/readers.py:641: note: Left operand is of type "int | integer[Any]"
+ pandas/io/parsers/python_parser.py:1550: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/io/parsers/python_parser.py:1550: note: Possible overload variants:
+ pandas/io/parsers/python_parser.py:1550: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/io/parsers/python_parser.py:1550: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/io/parsers/python_parser.py:1550: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1653: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/core/indexing.py:1653: note: Possible overload variants:
+ pandas/core/indexing.py:1653: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/indexing.py:1653: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/indexing.py:1653: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1692: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/core/indexing.py:1692: note: Possible overload variants:
+ pandas/core/indexing.py:1692: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/indexing.py:1692: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/indexing.py:1692: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1692: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/generic.py:4162: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/generic.py:4162: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:173: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:173: note: Possible overload variants:
+ pandas/core/window/rolling.py:173: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:173: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:173: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:175: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:175: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:175: note: Possible overload variants:
+ pandas/core/window/rolling.py:175: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:175: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:175: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "integer[Any]"  [operator]
+ pandas/core/window/rolling.py:175: note: Both left and right operands are unions
+ pandas/core/window/rolling.py:207: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:207: note: Possible overload variants:
+ pandas/core/window/rolling.py:207: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:207: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:207: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:1141: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:1141: note: Possible overload variants:
+ pandas/core/window/rolling.py:1141: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:1141: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:1141: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:1905: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:1905: note: Possible overload variants:
+ pandas/core/window/rolling.py:1905: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:1905: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:1905: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/tile.py:362: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/reshape/tile.py:362: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/tile.py:366: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/reshape/tile.py:366: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/merge.py:2383: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/reshape/merge.py:2383: note: Possible overload variants:
+ pandas/core/reshape/merge.py:2383: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/reshape/merge.py:2383: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/reshape/merge.py:2383: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1038: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/indexes/range.py:1038: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1199: error: Unsupported operand types for // ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/range.py:1199: note: Right operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1200: error: Unsupported operand types for // ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/range.py:1200: note: Right operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1205: error: Unsupported operand types for // ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/range.py:1205: note: Right operand is of type "int | integer[Any]"
+ pandas/core/indexes/multi.py:1693: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/indexes/multi.py:1693: note: Possible overload variants:
+ pandas/core/indexes/multi.py:1693: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/indexes/multi.py:1693: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/indexes/multi.py:1693: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/multi.py:1694: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/indexes/multi.py:1694: note: Left operand is of type "int | integer[Any]"

... (truncated 33 lines) ...

xarray (https://github.com/pydata/xarray)
+ xarray/core/indexing.py: note: In function "_decompose_outer_indexer":
+ xarray/core/indexing.py:1226: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ xarray/core/indexing.py:1226: note: Possible overload variants:
+ xarray/core/indexing.py:1226: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ xarray/core/indexing.py:1226: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ xarray/core/indexing.py:1226: note: Left operand is of type "int | integer[Any]"
+ xarray/core/indexing.py:1227: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ xarray/core/indexing.py:1227: note: Left operand is of type "int | integer[Any]"
+ xarray/coding/times.py: note: In function "_eagerly_encode_cf_datetime":
+ xarray/coding/times.py:909: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "timedelta64[timedelta | int | None]"  [operator]
+ xarray/coding/times.py:909: note: Possible overload variants:
+ xarray/coding/times.py:909: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ xarray/coding/times.py:909: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ xarray/coding/times.py: note: In function "_eagerly_encode_cf_timedelta":
+ xarray/coding/times.py:1034: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "timedelta64[timedelta | int | None]"  [operator]
+ xarray/coding/times.py:1034: note: Possible overload variants:
+ xarray/coding/times.py:1034: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ xarray/coding/times.py:1034: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ xarray/core/dataset.py: note: In member "dropna" of class "Dataset":
+ xarray/core/dataset.py:6606: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ xarray/core/dataset.py: note: At top level:
+ xarray/core/dataset.py:9137: error: Unused "type: ignore" comment  [unused-ignore]
+ xarray/core/dataset.py: note: In member "polyfit" of class "Dataset":
+ xarray/core/dataset.py:9137: error: Unsupported operand types for * ("int" and "floating[Any]")  [operator]
+ xarray/core/dataset.py:9137: note: Error code "operator" not covered by "type: ignore" comment
+ xarray/core/dataset.py: note: At top level:

spark (https://github.com/apache/spark)
+ python/pyspark/pandas/indexing.py:1654: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ python/pyspark/pandas/indexing.py:1654: note: Possible overload variants:
+ python/pyspark/pandas/indexing.py:1654: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ python/pyspark/pandas/indexing.py:1654: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ python/pyspark/pandas/indexing.py:1654: note: Left operand is of type "int | signedinteger[_64Bit] | signedinteger[_32Bit]"
+ python/pyspark/pandas/indexing.py:1667: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ python/pyspark/pandas/indexing.py:1667: note: Possible overload variants:
+ python/pyspark/pandas/indexing.py:1667: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ python/pyspark/pandas/indexing.py:1667: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ python/pyspark/pandas/indexing.py:1667: note: Left operand is of type "int | signedinteger[_64Bit] | signedinteger[_32Bit]"
+ python/pyspark/ml/linalg/__init__.py:632: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ python/pyspark/ml/linalg/__init__.py:632: note: Possible overload variants:
+ python/pyspark/ml/linalg/__init__.py:632: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ python/pyspark/ml/linalg/__init__.py:632: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ python/pyspark/ml/linalg/__init__.py:637: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ python/pyspark/ml/linalg/__init__.py:637: note: Possible overload variants:
+ python/pyspark/ml/linalg/__init__.py:637: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ python/pyspark/ml/linalg/__init__.py:637: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ tests/test_scalars.py:894: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:895: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:962: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:963: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:1286: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:1287: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:1330: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:1331: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/feature_benchmark/filter.py:31: error: Unsupported operand types for * ("int" and "floating[Any]")  [operator]

jax (https://github.com/google/jax)
+ jax/_src/nn/initializers.py:257: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/nn/initializers.py:257: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/nn/initializers.py:257: note: Left operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/reductions.py:770: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/numpy/reductions.py:770: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/reductions.py:770: note: Left operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | int | float | complex"
+ jax/_src/numpy/reductions.py:771: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/numpy/reductions.py:771: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/reductions.py:771: note: Left operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/fft.py:1205: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/numpy/fft.py:1205: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/fft.py:1205: note: Left operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/fft.py:1248: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/numpy/fft.py:1248: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/fft.py:1248: note: Left operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/lax/slicing.py:3050: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3050: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3050: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3050: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3050: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3054: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3054: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3054: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3054: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3054: note: Left operand is of type "int | integer[Any]"
+ jax/_src/numpy/lax_numpy.py:4030: error: Too many arguments for "__call__" of "_BoolTrueDiv"  [call-arg]
+ jax/_src/numpy/lax_numpy.py:4030: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/lax_numpy.py:4030: note: Left operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/lax_numpy.py:4031: error: Too many arguments for "__call__" of "_BoolTrueDiv"  [call-arg]
+ jax/_src/numpy/lax_numpy.py:4031: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/lax_numpy.py:4031: note: Left operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/lax_numpy.py:7494: error: Unsupported operand types for * ("int" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/numpy/lax_numpy.py:7494: error: Unsupported operand types for * ("int" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/numpy/lax_numpy.py:7494: note: Both left and right operands are unions
+ jax/_src/numpy/lax_numpy.py:11923: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ jax/_src/numpy/lax_numpy.py:11923: note: Possible overload variants:
+ jax/_src/numpy/lax_numpy.py:11923: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/numpy/lax_numpy.py:11923: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/numpy/lax_numpy.py:11923: note: Left operand is of type "integer[Any] | int"
+ jax/_src/nn/functions.py:220: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/nn/functions.py:220: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/nn/functions.py:220: note: Left operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/nn/functions.py:767: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/nn/functions.py:767: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/nn/functions.py:767: note: Left operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/scipy/signal.py:796: error: Unsupported operand types for / ("int" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/scipy/signal.py:796: error: Unsupported operand types for / ("int" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/scipy/signal.py:796: note: Right operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/scipy/signal.py:798: error: Unsupported operand types for / ("int" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/scipy/signal.py:798: error: Unsupported operand types for / ("int" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/scipy/signal.py:798: note: Right operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/scipy/signal.py:821: error: Unsupported operand types for / ("float" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/scipy/signal.py:821: error: Unsupported operand types for / ("float" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/scipy/signal.py:821: note: Right operand is of type "Array | ndarray[Any, Any] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/experimental/roofline/roofline.py:157: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ jax/_src/pallas/utils.py:63: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ jax/experimental/roofline/rooflines.py:73: error: Unsupported operand types for / ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/_src/internal_test_util/test_harnesses.py:3424: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ jax/_src/internal_test_util/test_harnesses.py:3424: note: Possible overload variants:
+ jax/_src/internal_test_util/test_harnesses.py:3424: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/internal_test_util/test_harnesses.py:3424: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/experimental/sparse/test_util.py:161: error: Unsupported operand types for * ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/sparse/test_util.py:161: error: Unsupported operand types for * ("float" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/sparse/test_util.py:161: note: Left operand is of type "int | float"

schemathesis (https://github.com/schemathesis/schemathesis)
-   File "/tmp/mypy_primer/old_mypy/venv/bin/mypy", line 8, in <module>
+   File "/tmp/mypy_primer/new_mypy/venv/bin/mypy", line 8, in <module>
-   File "/tmp/mypy_primer/old_mypy/venv/lib/python3.12/site-packages/mypy/__main__.py", line 15, in console_entry
+   File "/tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/__main__.py", line 15, in console_entry
-   File "/tmp/mypy_primer/old_mypy/venv/lib/python3.12/site-packages/mypy/main.py", line 119, in main
+   File "/tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/main.py", line 119, in main
-   File "/tmp/mypy_primer/old_mypy/venv/lib/python3.12/site-packages/mypy/main.py", line 203, in run_build
+   File "/tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/main.py", line 203, in run_build
-   File "/tmp/mypy_primer/old_mypy/venv/lib/python3.12/site-packages/mypy/build.py", line 191, in build
+   File "/tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/build.py", line 191, in build
-   File "/tmp/mypy_primer/old_mypy/venv/lib/python3.12/site-packages/mypy/build.py", line 267, in _build
+   File "/tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/build.py", line 267, in _build
-   File "/tmp/mypy_primer/old_mypy/venv/lib/python3.12/site-packages/mypy/build.py", line 2947, in dispatch
+   File "/tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/build.py", line 2947, in dispatch
-   File "/tmp/mypy_primer/old_mypy/venv/lib/python3.12/site-packages/mypy/build.py", line 976, in write_deps_cache
+   File "/tmp/mypy_primer/new_mypy/venv/lib/python3.12/site-packages/mypy/build.py", line 976, in write_deps_cache

antidote (https://github.com/Finistere/antidote)
+ tests/test_examples.py:37: error: Invalid self argument "Files" to attribute function "read" with type "Callable[[str], str]"  [misc]
+ tests/test_examples.py:37: error: Too many arguments for "__call__" of "InjectedMethod"  [call-arg]
+ tests/test_examples.py:41: error: Invalid self argument "Files" to attribute function "read" with type "Callable[[str], str]"  [misc]
+ tests/test_examples.py:41: error: Too many arguments for "__call__" of "InjectedMethod"  [call-arg]
+ tests/core/test_inject.py:517: error: Attribute function "method" with type "Callable[[], object]" does not accept self argument  [misc]
+ tests/core/test_inject.py:519: error: Invalid self argument "Conf" to attribute function "get" with type "Callable[[str], object]"  [misc]
+ tests/core/test_inject.py:519: error: Too many arguments for "__call__" of "InjectedMethod"  [call-arg]
+ tests/core/test_inject.py:522: error: Attribute function "method" with type "Callable[[], object]" does not accept self argument  [misc]
+ tests/core/test_inject.py:523: error: Invalid self argument "Conf" to attribute function "get" with type "Callable[[str], object]"  [misc]
+ tests/core/test_inject.py:523: error: Unexpected keyword argument "key" for "__call__" of "InjectedMethod"  [call-arg]
+ src/antidote/core/__init__.py:1305: note: "__call__" of "InjectedMethod" defined here

scipy (https://github.com/scipy/scipy)
+ scipy/stats/_multicomp.py:99: error: Unsupported operand types for - ("int" and "floating[Any]")  [operator]
+ scipy/stats/_multicomp.py:99: error: Unsupported operand types for - ("int" and "integer[Any]")  [operator]
+ scipy/stats/_multicomp.py:99: note: Right operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:121: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ scipy/stats/_multicomp.py:121: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ scipy/stats/_multicomp.py:121: note: Left operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:160: error: Unsupported operand types for < ("int" and "floating[Any]")  [operator]
+ scipy/stats/_multicomp.py:160: error: Unsupported operand types for < ("int" and "integer[Any]")  [operator]
+ scipy/stats/_multicomp.py:160: note: Right operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:160: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ scipy/stats/_multicomp.py:160: note: Possible overload variants:
+ scipy/stats/_multicomp.py:160: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ scipy/stats/_multicomp.py:160: note:     def __call__(self) -> ndarray[tuple[int, ...], dtype[numpy.bool[builtins.bool]]]
+ scipy/stats/_multicomp.py:160: note: Left operand is of type "float | floating[Any] | integer[Any]"
+ scipy/spatial/tests/test_qhull.py:62: error: Unsupported operand types for - ("int" and "floating[_64Bit]")  [operator]
+ scipy/interpolate/tests/test_bary_rational.py:34: error: Unsupported operand types for * ("float" and "floating[_64Bit]")  [operator]

github-actions[bot] avatar Jan 13 '25 07:01 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

colour (https://github.com/colour-science/colour)
+ colour/utilities/array.py:2428: error: Invalid self argument "floating[_16Bit]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ colour/utilities/array.py:2428: error: Invalid self argument "floating[_32Bit]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ colour/utilities/array.py:2428: note: Both left and right operands are unions
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:283: error: Unsupported operand types for * ("float" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:283: error: Unsupported operand types for * ("float" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:283: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:360: error: Unsupported operand types for * ("float" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:360: error: Unsupported operand types for * ("float" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:360: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "signedinteger[_8Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "unsignedinteger[_8Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:135: note: Possible overload variants:
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, int, /) -> signedinteger[_8Bit]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, float, /) -> float64
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, complex, /) -> complex128
+ colour/models/rgb/transfer_functions/common.py:135: note:     def [_NBit2: NBitBase] __call__(self, signedinteger[_NBit2], /) -> signedinteger[_8Bit] | signedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:135: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "unsignedinteger[_16Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:135: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "unsignedinteger[_32Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:135: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:135: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "floating[_16Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:135: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "floating[_32Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "signedinteger[_16Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, int, /) -> signedinteger[_16Bit]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def [_NBit2: NBitBase] __call__(self, signedinteger[_NBit2], /) -> signedinteger[_16Bit] | signedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "signedinteger[_32Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, int, /) -> signedinteger[_32Bit]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def [_NBit2: NBitBase] __call__(self, signedinteger[_NBit2], /) -> signedinteger[_32Bit] | signedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "signedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, int, /) -> signedinteger[_64Bit]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def [_NBit2: NBitBase] __call__(self, signedinteger[_NBit2], /) -> signedinteger[_64Bit] | signedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "unsignedinteger[_8Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: error: No overload variant of "__call__" of "_UnsignedIntOp" matches argument type "floating[_16Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, int, /) -> unsignedinteger[_8Bit]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def [_NBit2: NBitBase] __call__(self, unsignedinteger[_NBit2], /) -> unsignedinteger[_8Bit] | unsignedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, signedinteger[Any], /) -> Any
+ colour/models/rgb/transfer_functions/common.py:135: error: No overload variant of "__call__" of "_UnsignedIntOp" matches argument type "floating[_32Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "unsignedinteger[_16Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, int, /) -> unsignedinteger[_16Bit]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def [_NBit2: NBitBase] __call__(self, unsignedinteger[_NBit2], /) -> unsignedinteger[_16Bit] | unsignedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "unsignedinteger[_32Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, int, /) -> unsignedinteger[_32Bit]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def [_NBit2: NBitBase] __call__(self, unsignedinteger[_NBit2], /) -> unsignedinteger[_32Bit] | unsignedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "unsignedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def __call__(self, int, /) -> unsignedinteger[_64Bit]
+ colour/models/rgb/transfer_functions/common.py:135: note:     def [_NBit2: NBitBase] __call__(self, unsignedinteger[_NBit2], /) -> unsignedinteger[_64Bit] | unsignedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "floating[_16Bit]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: error: Invalid self argument "floating[_32Bit]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:135: note: Both left and right operands are unions
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "signedinteger[_8Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "unsignedinteger[_8Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:202: note: Possible overload variants:
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, int, /) -> signedinteger[_8Bit]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, float, /) -> float64
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, complex, /) -> complex128
+ colour/models/rgb/transfer_functions/common.py:202: note:     def [_NBit2: NBitBase] __call__(self, signedinteger[_NBit2], /) -> signedinteger[_8Bit] | signedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:202: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "unsignedinteger[_16Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:202: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "unsignedinteger[_32Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:202: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:202: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "floating[_16Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:202: error: No overload variant of "__call__" of "_SignedIntOp" matches argument type "floating[_32Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "signedinteger[_16Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, int, /) -> signedinteger[_16Bit]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def [_NBit2: NBitBase] __call__(self, signedinteger[_NBit2], /) -> signedinteger[_16Bit] | signedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "signedinteger[_32Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, int, /) -> signedinteger[_32Bit]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def [_NBit2: NBitBase] __call__(self, signedinteger[_NBit2], /) -> signedinteger[_32Bit] | signedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "signedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, int, /) -> signedinteger[_64Bit]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def [_NBit2: NBitBase] __call__(self, signedinteger[_NBit2], /) -> signedinteger[_64Bit] | signedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "unsignedinteger[_8Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: error: No overload variant of "__call__" of "_UnsignedIntOp" matches argument type "floating[_16Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, int, /) -> unsignedinteger[_8Bit]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def [_NBit2: NBitBase] __call__(self, unsignedinteger[_NBit2], /) -> unsignedinteger[_8Bit] | unsignedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, signedinteger[Any], /) -> Any
+ colour/models/rgb/transfer_functions/common.py:202: error: No overload variant of "__call__" of "_UnsignedIntOp" matches argument type "floating[_32Bit]"  [operator]
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "unsignedinteger[_16Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, int, /) -> unsignedinteger[_16Bit]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def [_NBit2: NBitBase] __call__(self, unsignedinteger[_NBit2], /) -> unsignedinteger[_16Bit] | unsignedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "unsignedinteger[_32Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, int, /) -> unsignedinteger[_32Bit]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def [_NBit2: NBitBase] __call__(self, unsignedinteger[_NBit2], /) -> unsignedinteger[_32Bit] | unsignedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "unsignedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def __call__(self, int, /) -> unsignedinteger[_64Bit]
+ colour/models/rgb/transfer_functions/common.py:202: note:     def [_NBit2: NBitBase] __call__(self, unsignedinteger[_NBit2], /) -> unsignedinteger[_64Bit] | unsignedinteger[_NBit2]
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "floating[_16Bit]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: error: Invalid self argument "floating[_32Bit]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ colour/models/rgb/transfer_functions/common.py:202: note: Both left and right operands are unions
- colour/io/luts/lut.py:1378: error: No overload variant of "pad" matches argument types "ndarray[Any, Any]", "tuple[int, Any | signedinteger[_8Bit] | signedinteger[_16Bit] | signedinteger[_32Bit] | signedinteger[_64Bit] | unsignedinteger[_8Bit] | unsignedinteger[_16Bit] | unsignedinteger[_32Bit] | unsignedinteger[_64Bit]]", "str", "float"  [call-overload]
+ colour/io/luts/lut.py:1378: error: No overload variant of "pad" matches argument types "ndarray[Any, Any]", "tuple[int, Any | int]", "str", "float"  [call-overload]
+ colour/io/luts/lut.py:1380: error: Unsupported operand types for - ("signedinteger[_8Bit]" and "int")  [operator]
+ colour/io/luts/lut.py:1380: error: Unsupported operand types for - ("signedinteger[_16Bit]" and "int")  [operator]
+ colour/io/luts/lut.py:1380: error: Unsupported operand types for - ("signedinteger[_32Bit]" and "int")  [operator]
+ colour/io/luts/lut.py:1380: error: Unsupported operand types for - ("signedinteger[_64Bit]" and "int")  [operator]
+ colour/io/luts/lut.py:1380: error: Unsupported operand types for - ("unsignedinteger[_8Bit]" and "int")  [operator]
+ colour/io/luts/lut.py:1380: error: Unsupported operand types for - ("unsignedinteger[_16Bit]" and "int")  [operator]
+ colour/io/luts/lut.py:1380: error: Unsupported operand types for - ("unsignedinteger[_32Bit]" and "int")  [operator]
+ colour/io/luts/lut.py:1380: error: Unsupported operand types for - ("unsignedinteger[_64Bit]" and "int")  [operator]
+ colour/io/luts/lut.py:1380: note: Left operand is of type "Any | signedinteger[_8Bit] | signedinteger[_16Bit] | signedinteger[_32Bit] | signedinteger[_64Bit] | unsignedinteger[_8Bit] | unsignedinteger[_16Bit] | unsignedinteger[_32Bit] | unsignedinteger[_64Bit]"
+ colour/appearance/hunt.py:655: error: Unsupported operand types for / ("floating[_16Bit]" and "int")  [operator]
+ colour/appearance/hunt.py:655: error: Unsupported operand types for / ("floating[_32Bit]" and "int")  [operator]
+ colour/appearance/hunt.py:655: note: Both left and right operands are unions
+ colour/appearance/hunt.py:655: error: Unsupported operand types for + ("floating[_16Bit]" and "int")  [operator]
+ colour/appearance/hunt.py:655: error: Unsupported operand types for + ("floating[_32Bit]" and "int")  [operator]

... (truncated 380 lines) ...

hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/auxs/statstools.py:786: error: Invalid self argument "floating[Any]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ hydpy/auxs/statstools.py:787: error: Invalid self argument "floating[Any]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ hydpy/auxs/statstools.py:788: error: Unsupported operand types for - ("floating[Any]" and "float")  [operator]
+ hydpy/auxs/statstools.py:884: error: Redundant cast to "float"  [redundant-cast]
+ hydpy/auxs/statstools.py:884: error: Invalid self argument "floating[Any]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ hydpy/auxs/statstools.py:884: error: Unsupported operand types for - ("floating[Any]" and "float")  [operator]
+ hydpy/auxs/statstools.py:932: error: Redundant cast to "float"  [redundant-cast]
+ hydpy/auxs/statstools.py:932: error: Invalid self argument "floating[Any]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ hydpy/auxs/statstools.py:932: error: Unsupported operand types for - ("floating[Any]" and "float")  [operator]
+ hydpy/auxs/statstools.py:980: error: Invalid self argument "floating[Any]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ hydpy/auxs/statstools.py:981: error: Invalid self argument "floating[Any]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ hydpy/auxs/statstools.py:982: error: Redundant cast to "float"  [redundant-cast]
+ hydpy/auxs/statstools.py:982: error: Invalid self argument "floating[Any]" to attribute function "__call__" with type "Callable[[_FloatOp[_NBit1], int], floating[_NBit1]]"  [misc]
+ hydpy/auxs/statstools.py:982: error: Unsupported operand types for - ("floating[Any]" and "float")  [operator]
+ hydpy/auxs/ppolytools.py:428: error: Unsupported operand types for + ("signedinteger[_32Bit | _64Bit]" and "int")  [operator]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/_numba/kernels/min_max_.py:176: error: Unsupported operand types for > ("int" and "signedinteger[_64Bit]")  [operator]
+ pandas/util/_validators.py:441: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/util/_validators.py:441: note: Left operand is of type "int | integer[Any]"
+ pandas/core/util/hashing.py:77: error: Invalid self argument "unsignedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ pandas/core/nanops.py:723: error: Unsupported operand types for < ("int" and "floating[Any]")  [operator]
+ pandas/core/nanops.py:723: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1276: error: Unsupported operand types for - ("floating[Any]" and "int")  [operator]
+ pandas/core/nanops.py:1276: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1284: error: Unsupported operand types for > ("int" and "floating[Any]")  [operator]
+ pandas/core/nanops.py:1284: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1287: error: Unsupported operand types for > ("int" and "floating[Any]")  [operator]
+ pandas/core/nanops.py:1287: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1357: error: Unsupported operand types for - ("floating[Any]" and "int")  [operator]
+ pandas/core/nanops.py:1357: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1358: error: Unsupported operand types for * ("floating[Any]" and "int")  [operator]
+ pandas/core/nanops.py:1358: note: Both left and right operands are unions
+ pandas/core/nanops.py:1358: error: Unsupported operand types for + ("floating[Any]" and "int")  [operator]
+ pandas/core/nanops.py:1358: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1358: error: Unsupported operand types for - ("floating[Any]" and "int")  [operator]
+ pandas/core/nanops.py:1359: error: Unsupported operand types for - ("floating[Any]" and "int")  [operator]
+ pandas/core/nanops.py:1359: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1371: error: Unsupported operand types for > ("int" and "floating[Any]")  [operator]
+ pandas/core/nanops.py:1371: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1385: error: Unsupported operand types for > ("int" and "floating[Any]")  [operator]
+ pandas/core/nanops.py:1385: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1577: error: Unsupported operand types for > ("int" and "signedinteger[_64Bit]")  [operator]
+ pandas/core/dtypes/cast.py:1804: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/dtypes/cast.py:1804: note: Right operand is of type "int | integer[Any] | float"
+ pandas/core/dtypes/cast.py:1804: error: Unsupported operand types for >= ("int" and "integer[Any]")  [operator]
+ pandas/core/dtypes/cast.py:1804: note: Left operand is of type "int | integer[Any] | float"
+ pandas/core/missing.py:251: error: Incompatible types in assignment (expression has type "int", variable has type "signedinteger[_32Bit | _64Bit]")  [assignment]
+ pandas/core/missing.py:251: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/missing.py:969: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/missing.py:974: error: Unsupported operand types for + ("signedinteger[_32Bit | _64Bit]" and "int")  [operator]
+ pandas/core/arrays/_ranges.py:127: error: Invalid self argument "unsignedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ pandas/core/arrays/_ranges.py:141: error: Unsupported operand types for > ("int" and "unsignedinteger[_64Bit]")  [operator]
+ pandas/core/arrays/_ranges.py:141: error: Unsupported operand types for <= ("int" and "unsignedinteger[_64Bit]")  [operator]
+ pandas/core/arrays/_ranges.py:169: error: Invalid self argument "signedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ pandas/core/arrays/_ranges.py:172: error: Invalid self argument "signedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_SignedIntOp[_NBit1], int], signedinteger[_NBit1]]"  [misc]
+ pandas/core/arrays/_ranges.py:192: error: Invalid self argument "unsignedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ pandas/core/arrays/_ranges.py:194: error: Invalid self argument "unsignedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_ComparisonOpGT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ pandas/core/arrays/_ranges.py:195: error: Invalid self argument "unsignedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_ComparisonOpLE[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ pandas/core/arrays/_ranges.py:195: error: Invalid self argument "unsignedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_UnsignedIntOp[_NBit1], int], unsignedinteger[_NBit1]]"  [misc]
+ pandas/tseries/frequencies.py:274: error: Unsupported operand types for / ("signedinteger[_64Bit]" and "int")  [operator]
- pandas/tseries/frequencies.py:274: error: List comprehension has incompatible type List[floating[_64Bit]]; expected List[int]  [misc]
+ pandas/tseries/frequencies.py:274: error: List comprehension has incompatible type List[float]; expected List[int]  [misc]
+ pandas/tseries/frequencies.py:279: error: Unsupported operand types for / ("signedinteger[_64Bit]" and "int")  [operator]
- pandas/tseries/frequencies.py:279: error: List comprehension has incompatible type List[floating[_64Bit]]; expected List[int]  [misc]
+ pandas/tseries/frequencies.py:279: error: List comprehension has incompatible type List[float]; expected List[int]  [misc]
+ pandas/core/arrays/masked.py:214: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/arrays/masked.py:219: error: Unsupported operand types for + ("signedinteger[_32Bit | _64Bit]" and "int")  [operator]
+ pandas/core/arrays/string_.py:937: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
- pandas/io/stata.py:1450: error: Argument 1 to "append" of "list" has incompatible type "unsignedinteger[_8Bit]"; expected "int"  [arg-type]
+ pandas/io/stata.py:1450: error: Unsupported operand types for - ("unsignedinteger[_8Bit]" and "int")  [operator]
+ pandas/io/parsers/readers.py:641: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/io/parsers/readers.py:641: note: Left operand is of type "int | integer[Any]"
+ pandas/io/parsers/python_parser.py:1548: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/io/parsers/python_parser.py:1548: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1647: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/indexing.py:1647: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1686: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/indexing.py:1686: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1686: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:184: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:184: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:186: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:186: error: Unsupported operand types for < ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:186: error: Invalid self argument "integer[Any]" to attribute function "__call__" with type "Callable[[_ComparisonOpGT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ pandas/core/window/rolling.py:186: note: Both left and right operands are unions
+ pandas/core/window/rolling.py:218: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:218: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:1160: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:1160: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:1974: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:1974: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/merge.py:2458: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/reshape/merge.py:2458: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/multi.py:1691: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/multi.py:1691: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/multi.py:1700: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/multi.py:1700: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/multi.py:3049: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/multi.py:3049: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/multi.py:3051: error: Unsupported operand types for + ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/indexes/multi.py:3051: note: Right operand is of type "ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit | _64Bit]]] | signedinteger[_32Bit | _64Bit]"
+ pandas/core/indexes/multi.py:3062: error: Unsupported operand types for + ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/indexes/multi.py:3062: note: Error code "operator" not covered by "type: ignore" comment
+ pandas/core/indexes/multi.py:3062: note: Right operand is of type "ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit | _64Bit]]] | signedinteger[_32Bit | _64Bit]"
+ pandas/core/indexes/multi.py:3067: error: Unsupported operand types for + ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/indexes/multi.py:3067: note: Error code "operator" not covered by "type: ignore" comment
+ pandas/core/indexes/multi.py:3067: note: Right operand is of type "ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit | _64Bit]]] | signedinteger[_32Bit | _64Bit]"
+ pandas/core/indexes/multi.py:3074: error: Unsupported operand types for + ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/indexes/multi.py:3074: note: Right operand is of type "ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit | _64Bit]]] | signedinteger[_32Bit | _64Bit]"
+ pandas/core/indexes/base.py:5692: error: Unsupported operand types for < ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/indexes/base.py:5692: note: Left operand is of type "ndarray[tuple[Any, ...], dtype[signedinteger[_32Bit | _64Bit]]] | signedinteger[_32Bit | _64Bit] | Any"
+ pandas/core/indexes/base.py:5692: error: Unsupported operand types for - ("signedinteger[_32Bit | _64Bit]" and "int")  [operator]
+ pandas/core/groupby/ops.py:1140: error: Unsupported operand types for > ("int" and "signedinteger[_64Bit]")  [operator]
+ pandas/core/groupby/ops.py:1140: note: Left operand is of type "signedinteger[_64Bit] | int"
+ pandas/core/groupby/ops.py:1149: error: Invalid self argument "signedinteger[_64Bit]" to attribute function "__call__" with type "Callable[[_ComparisonOpLT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ pandas/core/groupby/ops.py:1149: error: Unsupported operand types for < ("int" and "signedinteger[_64Bit]")  [operator]
+ pandas/core/groupby/ops.py:1149: note: Left operand is of type "signedinteger[_64Bit] | int"

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/feature_benchmark/filter.py:31: error: Unsupported operand types for < ("int" and "float")  [operator]
+ misc/python/materialize/feature_benchmark/filter.py:31: error: Unsupported operand types for + ("floating[Any]" and "int")  [operator]
+ misc/python/materialize/feature_benchmark/filter.py:31: error: Unsupported operand types for * ("int" and "floating[Any]")  [operator]

scipy (https://github.com/scipy/scipy)
+ scipy/stats/_multicomp.py:99: error: Unsupported operand types for - ("int" and "floating[Any]")  [operator]
+ scipy/stats/_multicomp.py:99: note: Right operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:121: error: Unsupported operand types for * ("floating[Any]" and "int")  [operator]
+ scipy/stats/_multicomp.py:121: note: Left operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:160: error: Unsupported operand types for < ("int" and "floating[Any]")  [operator]
+ scipy/stats/_multicomp.py:160: error: Unsupported operand types for < ("int" and "integer[Any]")  [operator]
+ scipy/stats/_multicomp.py:160: note: Right operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:160: error: Unsupported operand types for > ("int" and "floating[Any]")  [operator]
+ scipy/stats/_multicomp.py:160: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ scipy/stats/_multicomp.py:160: note: Left operand is of type "float | floating[Any] | integer[Any]"
+ scipy/spatial/tests/test_qhull.py:62: error: Unsupported operand types for - ("int" and "floating[_64Bit]")  [operator]
+ scipy/interpolate/tests/test_bary_rational.py:34: error: Unsupported operand types for * ("float" and "floating[_64Bit]")  [operator]

arviz (https://github.com/arviz-devs/arviz)
+ arviz/tests/base_tests/test_stats.py:384: error: Unsupported operand types for ** ("floating[Any]" and "int")  [operator]

jax (https://github.com/google/jax)
+ jax/_src/lax/slicing.py:3149: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ jax/_src/lax/slicing.py:3149: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3150: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ jax/_src/lax/slicing.py:3150: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3159: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ jax/_src/lax/slicing.py:3159: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3160: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ jax/_src/lax/slicing.py:3160: note: Left operand is of type "int | integer[Any]"
+ jax/_src/numpy/reductions.py:768: error: Unsupported operand types for * ("numpy.bool[builtins.bool]" and "float")  [operator]
+ jax/_src/numpy/reductions.py:768: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | int | float | complex"
+ jax/_src/numpy/indexing.py:594: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ jax/_src/numpy/indexing.py:594: note: Left operand is of type "int | integer[Any]"
+ jax/_src/numpy/indexing.py:597: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ jax/_src/numpy/indexing.py:597: note: Left operand is of type "integer[Any] | int"
+ jax/_src/numpy/fft.py:1191: error: Unsupported operand types for * ("numpy.bool[builtins.bool]" and "int")  [operator]
+ jax/_src/numpy/fft.py:1191: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/fft.py:1234: error: Unsupported operand types for * ("numpy.bool[builtins.bool]" and "int")  [operator]
+ jax/_src/numpy/fft.py:1234: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/nn/initializers.py:267: error: Unsupported operand types for ** ("numpy.bool[builtins.bool]" and "int")  [operator]
+ jax/_src/nn/initializers.py:267: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/lax_numpy.py:3873: error: Unsupported operand types for / ("numpy.bool[builtins.bool]" and "int")  [operator]
+ jax/_src/numpy/lax_numpy.py:3873: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/lax_numpy.py:3874: error: Unsupported operand types for / ("numpy.bool[builtins.bool]" and "int")  [operator]
+ jax/_src/numpy/lax_numpy.py:3874: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/lax_numpy.py:6409: error: Unsupported operand types for * ("int" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/numpy/lax_numpy.py:6409: note: Both left and right operands are unions
+ jax/_src/nn/functions.py:238: error: Unsupported operand types for + ("numpy.bool[builtins.bool]" and "float")  [operator]
+ jax/_src/nn/functions.py:238: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/nn/functions.py:798: error: Unsupported operand types for + ("numpy.bool[builtins.bool]" and "float")  [operator]
+ jax/_src/nn/functions.py:798: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/random.py:1722: error: Unsupported operand types for + ("float" and "floating[Any]")  [operator]
+ jax/_src/scipy/special.py:2870: error: Unsupported operand types for * ("floating[Any]" and "int")  [operator]
+ jax/_src/scipy/signal.py:792: error: Unsupported operand types for / ("int" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/scipy/signal.py:792: note: Right operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/scipy/signal.py:794: error: Unsupported operand types for / ("int" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/scipy/signal.py:794: note: Right operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/scipy/signal.py:817: error: Unsupported operand types for / ("float" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/scipy/signal.py:817: note: Right operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/experimental/roofline/roofline.py:164: error: Unsupported operand types for * ("signedinteger[_64Bit]" and "int")  [operator]
+ jax/experimental/roofline/roofline.py:164: error: Generator has incompatible item type "int"; expected "bool"  [misc]
+ jax/_src/pallas/utils.py:54: error: Unsupported operand types for // ("signedinteger[_64Bit]" and "int")  [operator]
+ jax/_src/pallas/utils.py:54: error: Incompatible types in assignment (expression has type "int", variable has type "signedinteger[_64Bit]")  [assignment]
+ jax/experimental/roofline/rooflines.py:167: error: Unsupported operand types for / ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/roofline/rooflines.py:168: error: Unsupported operand types for / ("float" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/roofline/rooflines.py:600: error: Unsupported operand types for - ("signedinteger[_64Bit]" and "int")  [operator]
+ jax/experimental/roofline/rooflines.py:600: error: Unsupported operand types for * ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/roofline/rooflines.py:603: error: Unsupported operand types for + ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/_src/internal_test_util/test_harnesses.py:3426: error: Unsupported operand types for <= ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/sparse/test_util.py:161: error: Unsupported operand types for * ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/sparse/test_util.py:161: error: Unsupported operand types for * ("float" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/sparse/test_util.py:161: note: Left operand is of type "int | float"
+ jax/experimental/pallas/ops/tpu/random/threefry.py:51: error: Unsupported operand types for < ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/pallas/ops/tpu/random/philox.py:99: error: Unsupported operand types for < ("int" and "signedinteger[_64Bit]")  [operator]

optuna (https://github.com/optuna/optuna)
+ optuna/samplers/_tpe/sampler.py:779: error: Unsupported operand types for >= ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]

AutoSplit (https://github.com/Toufool/AutoSplit)
+ src/compare.py:109:21: error: Unsupported operand types for / ("signedinteger[_32Bit | _64Bit]" and "float")  [operator]

dedupe (https://github.com/dedupeio/dedupe)
+ dedupe/clustering.py:58: error: Unsupported operand types for - ("signedinteger[_64Bit]" and "int")  [operator]

spark (https://github.com/apache/spark)
+ python/pyspark/pandas/indexing.py:1663: error: Unsupported operand types for > ("int" and "signedinteger[Any]")  [operator]
+ python/pyspark/pandas/indexing.py:1663: note: Left operand is of type "int | signedinteger[Any]"
+ python/pyspark/pandas/indexing.py:1676: error: Unsupported operand types for > ("int" and "signedinteger[Any]")  [operator]
+ python/pyspark/pandas/indexing.py:1676: note: Left operand is of type "int | signedinteger[Any]"
+ python/pyspark/ml/linalg/__init__.py:632: error: Unsupported operand types for > ("int" and "signedinteger[_32Bit]")  [operator]
+ python/pyspark/ml/linalg/__init__.py:637: error: Unsupported operand types for <= ("int" and "signedinteger[_32Bit]")  [operator]

static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/util.py:3968: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ static_frame/core/util.py:3968: note: Left operand is of type "int | integer[Any]"
+ static_frame/core/util.py:3968: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ static_frame/core/frame.py:1645: error: Unsupported operand types for >= ("int" and "integer[Any]")  [operator]
+ static_frame/core/frame.py:1645: note: Right operand is of type "int | integer[Any]"
+ static_frame/core/reduce.py:625: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ static_frame/core/reduce.py:625: note: Left operand is of type "int | integer[Any] | Any"
+ static_frame/core/reduce.py:635: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ static_frame/core/reduce.py:635: note: Left operand is of type "int | integer[Any] | Any"
+ static_frame/core/reduce.py:671: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ static_frame/core/reduce.py:671: note: Left operand is of type "int | integer[Any] | Any"
+ static_frame/core/reduce.py:681: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ static_frame/core/reduce.py:681: note: Left operand is of type "int | integer[Any] | Any"

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ tests/test_scalars.py:902: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:903: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:970: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:971: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:1298: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:1299: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:1346: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/test_scalars.py:1347: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]

xarray (https://github.com/pydata/xarray)
+ xarray/core/indexing.py:1236: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ xarray/core/indexing.py:1236: note: Left operand is of type "int | integer[Any]"
+ xarray/coding/times.py: note: In function "_align_reference_date_and_unit":
+ xarray/coding/times.py:419: error: Invalid self argument "timedelta64[timedelta | int | None]" to attribute function "__call__" with type "Callable[[_ComparisonOpGT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ xarray/coding/times.py: note: In function "_numbers_to_timedelta":
+ xarray/coding/times.py:627: error: Invalid self argument "timedelta64[timedelta | int | None]" to attribute function "__call__" with type "Callable[[_ComparisonOpGT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ xarray/coding/times.py: note: In function "decode_cf_timedelta":
+ xarray/coding/times.py:686: error: Invalid self argument "timedelta64[timedelta | int | None]" to attribute function "__call__" with type "Callable[[_ComparisonOpGT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ xarray/coding/times.py: note: In function "_eagerly_encode_cf_datetime":
+ xarray/coding/times.py:1090: error: Invalid self argument "timedelta64[timedelta | int | None]" to attribute function "__call__" with type "Callable[[_ComparisonOpGT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ xarray/coding/times.py:1516: error: Invalid self argument "timedelta64[timedelta | int | None]" to attribute function "__call__" with type "Callable[[_ComparisonOpGT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ xarray/coding/times.py:1531: error: Invalid self argument "timedelta64[timedelta | int | None]" to attribute function "__call__" with type "Callable[[_ComparisonOpLT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ xarray/core/dataset.py: note: In member "dropna" of class "Dataset":
+ xarray/core/dataset.py:6280: error: Unsupported operand types for + ("signedinteger[_32Bit | _64Bit]" and "int")  [operator]
+ xarray/core/dataset.py:6280: error: Incompatible types in assignment (expression has type "int", variable has type "signedinteger[_32Bit | _64Bit]")  [assignment]
+ xarray/tests/test_coding_times.py: note: In function "test_cf_datetime":
+ xarray/tests/test_coding_times.py:125: error: Invalid self argument "timedelta64[timedelta | int | None]" to attribute function "__call__" with type "Callable[[_ComparisonOpGT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ xarray/tests/test_coding_times.py: note: In function "test_decode_cf_timedelta_time_unit":
+ xarray/tests/test_coding_times.py:641: error: Invalid self argument "timedelta64[timedelta | int | None]" to attribute function "__call__" with type "Callable[[_ComparisonOpGT[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ xarray/tests/test_coding_times.py: note: In function "test_decode_cf_timedelta_time_unit_out_of_bounds":
+ xarray/tests/test_coding_times.py:658: error: Unsupported operand types for * ("signedinteger[_64Bit]" and "int")  [operator]
+ xarray/tests/test_coding_times.py: note: In function "test_roundtrip_datetime64_nanosecond_precision":
+ xarray/tests/test_coding_times.py:1417: error: Invalid self argument "timedelta64[timedelta | int | None]" to attribute function "__call__" with type "Callable[[_ComparisonOpLE[_T1_contra, _T2_contra], _T1_contra], numpy.bool[builtins.bool]]"  [misc]
+ xarray/tests/test_coding_times.py: note: At top level:

github-actions[bot] avatar Jun 15 '25 11:06 github-actions[bot]

Diff from mypy_primer, showing the effect of this PR on open source code:

colour (https://github.com/colour-science/colour)
+ colour/utilities/array.py:2428: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/utilities/array.py:2428: note: Both left and right operands are unions
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:283: error: Unsupported operand types for * ("float" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:283: error: Unsupported operand types for * ("float" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:283: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:360: error: Unsupported operand types for * ("float" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:360: error: Unsupported operand types for * ("float" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:360: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/transfer_functions/common.py:135: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/models/rgb/transfer_functions/common.py:135: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ colour/models/rgb/transfer_functions/common.py:135: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/models/rgb/transfer_functions/common.py:135: note: Both left and right operands are unions
+ colour/models/rgb/transfer_functions/common.py:202: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/models/rgb/transfer_functions/common.py:202: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ colour/models/rgb/transfer_functions/common.py:202: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/models/rgb/transfer_functions/common.py:202: note: Both left and right operands are unions
- colour/io/luts/lut.py:1378: error: No overload variant of "pad" matches argument types "ndarray[Any, Any]", "tuple[int, Any | signedinteger[_8Bit] | signedinteger[_16Bit] | signedinteger[_32Bit] | signedinteger[_64Bit] | unsignedinteger[_8Bit] | unsignedinteger[_16Bit] | unsignedinteger[_32Bit] | unsignedinteger[_64Bit]]", "str", "float"  [call-overload]
+ colour/io/luts/lut.py:1378: error: No overload variant of "pad" matches argument types "ndarray[Any, Any]", "tuple[int, Any]", "str", "float"  [call-overload]
+ colour/io/luts/lut.py:1380: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/io/luts/lut.py:1380: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ colour/io/luts/lut.py:1380: note: Left operand is of type "Any | signedinteger[_8Bit] | signedinteger[_16Bit] | signedinteger[_32Bit] | signedinteger[_64Bit] | unsignedinteger[_8Bit] | unsignedinteger[_16Bit] | unsignedinteger[_32Bit] | unsignedinteger[_64Bit]"
+ colour/appearance/hunt.py:655: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/appearance/hunt.py:655: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
+ colour/appearance/hke.py:124: error: Unsupported operand types for * ("float" and "floating[_16Bit]")  [operator]
+ colour/appearance/hke.py:124: error: Unsupported operand types for * ("float" and "floating[_32Bit]")  [operator]
+ colour/appearance/hke.py:124: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
+ colour/appearance/hke.py:283: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/appearance/hke.py:283: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
+ colour/models/rgb/transfer_functions/itur_bt_2100.py:599: error: Unsupported operand types for * ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/transfer_functions/itur_bt_2100.py:599: error: Unsupported operand types for * ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/transfer_functions/itur_bt_2100.py:599: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
- colour/continuous/signal.py:834: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "Buffer"  [call-overload]
+ colour/continuous/signal.py:834: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "Buffer"  [operator]
- colour/continuous/signal.py:834: note:     def __call__(self, complex | number[Any, int | float | complex] | numpy.bool[builtins.bool], /) -> numpy.bool[builtins.bool]
- colour/continuous/signal.py:834: note:     def __call__(self, _SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | complex | _NestedSequence[complex], /) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
- colour/continuous/signal.py:834: note:     def __call__(self, _NestedSequence[_SupportsGE], /) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
- colour/continuous/signal.py:834: note:     def __call__(self, _SupportsGE, /) -> numpy.bool[builtins.bool]
+ colour/continuous/signal.py:834: note:     def __call__(self) -> numpy.bool[builtins.bool]
- colour/continuous/signal.py:834: error: Argument 1 to "__call__" of "_ComparisonOpLE" has incompatible type "_NestedSequence[complex | bytes | str]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | complex | _NestedSequence[complex]"  [arg-type]
+ colour/continuous/signal.py:834: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ colour/continuous/signal.py:834: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "_SupportsArray[dtype[Any]]"  [operator]
+ colour/continuous/signal.py:834: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "_NestedSequence[_SupportsArray[dtype[Any]]]"  [operator]
+ colour/continuous/signal.py:834: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "complex"  [operator]
+ colour/continuous/signal.py:834: error: Unsupported operand types for >= ("bytes" and "floating[_16Bit]")  [operator]
+ colour/continuous/signal.py:834: error: Unsupported operand types for >= ("bytes" and "floating[_32Bit]")  [operator]
+ colour/continuous/signal.py:834: error: Unsupported operand types for >= ("bytes" and "float64")  [operator]
+ colour/continuous/signal.py:834: error: Unsupported operand types for >= ("str" and "floating[_16Bit]")  [operator]
+ colour/continuous/signal.py:834: error: Unsupported operand types for >= ("str" and "floating[_32Bit]")  [operator]
+ colour/continuous/signal.py:834: error: Unsupported operand types for >= ("str" and "float64")  [operator]
+ colour/continuous/signal.py:834: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "_NestedSequence[complex | bytes | str]"  [operator]
- colour/continuous/signal.py:834: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "slice[Any, Any, Any]"  [call-overload]
+ colour/continuous/signal.py:834: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "slice[Any, Any, Any]"  [operator]
- colour/continuous/signal.py:835: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "Buffer"  [call-overload]
+ colour/continuous/signal.py:835: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "Buffer"  [operator]
- colour/continuous/signal.py:835: note:     def __call__(self, complex | number[Any, int | float | complex] | numpy.bool[builtins.bool], /) -> numpy.bool[builtins.bool]
- colour/continuous/signal.py:835: note:     def __call__(self, _SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | complex | _NestedSequence[complex], /) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
- colour/continuous/signal.py:835: note:     def __call__(self, _NestedSequence[_SupportsGT], /) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
- colour/continuous/signal.py:835: note:     def __call__(self, _SupportsGT, /) -> numpy.bool[builtins.bool]
+ colour/continuous/signal.py:835: note:     def __call__(self) -> numpy.bool[builtins.bool]
- colour/continuous/signal.py:835: error: Argument 1 to "__call__" of "_ComparisonOpGE" has incompatible type "_NestedSequence[complex | bytes | str]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | complex | _NestedSequence[complex]"  [arg-type]
+ colour/continuous/signal.py:835: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ colour/continuous/signal.py:835: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "_SupportsArray[dtype[Any]]"  [operator]
+ colour/continuous/signal.py:835: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "_NestedSequence[_SupportsArray[dtype[Any]]]"  [operator]
+ colour/continuous/signal.py:835: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "complex"  [operator]
+ colour/continuous/signal.py:835: error: Unsupported operand types for <= ("bytes" and "floating[_16Bit]")  [operator]
+ colour/continuous/signal.py:835: error: Unsupported operand types for <= ("bytes" and "floating[_32Bit]")  [operator]
+ colour/continuous/signal.py:835: error: Unsupported operand types for <= ("bytes" and "float64")  [operator]
+ colour/continuous/signal.py:835: error: Unsupported operand types for <= ("str" and "floating[_16Bit]")  [operator]
+ colour/continuous/signal.py:835: error: Unsupported operand types for <= ("str" and "floating[_32Bit]")  [operator]
+ colour/continuous/signal.py:835: error: Unsupported operand types for <= ("str" and "float64")  [operator]
+ colour/continuous/signal.py:835: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "_NestedSequence[complex | bytes | str]"  [operator]
- colour/continuous/signal.py:835: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "slice[Any, Any, Any]"  [call-overload]
+ colour/continuous/signal.py:835: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "slice[Any, Any, Any]"  [operator]
+ colour/models/rgb/ycbcr.py:279: error: Unsupported operand types for - ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:279: error: Unsupported operand types for - ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:279: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/ycbcr.py:280: error: Unsupported operand types for - ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:280: error: Unsupported operand types for - ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:280: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/ycbcr.py:281: error: Unsupported operand types for - ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:281: error: Unsupported operand types for - ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:281: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/ycbcr.py:282: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/models/rgb/ycbcr.py:282: note: Both left and right operands are unions
+ colour/models/rgb/ycbcr.py:283: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/models/rgb/ycbcr.py:283: note: Both left and right operands are unions
+ colour/models/rgb/ycbcr.py:284: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/models/rgb/ycbcr.py:284: note: Both left and right operands are unions
+ colour/models/rgb/ycbcr.py:325: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/models/rgb/ycbcr.py:325: note: Left operand is of type "floating[_16Bit] | Any | float64 | floating[_32Bit]"
+ colour/models/rgb/ycbcr.py:325: note: Both left and right operands are unions
+ colour/models/rgb/ycbcr.py:508: error: Unsupported operand types for - ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:508: error: Unsupported operand types for - ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:508: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/ycbcr.py:509: error: Unsupported operand types for - ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:509: error: Unsupported operand types for - ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:509: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/ycbcr.py:510: error: Unsupported operand types for - ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:510: error: Unsupported operand types for - ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:510: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/ycbcr.py:646: error: Unsupported operand types for * ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:646: error: Unsupported operand types for * ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:646: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/ycbcr.py:647: error: Unsupported operand types for * ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:647: error: Unsupported operand types for * ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:647: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/ycbcr.py:648: error: Unsupported operand types for - ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:648: error: Unsupported operand types for - ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/ycbcr.py:648: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/colorimetry/spectrum.py:526: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/colorimetry/spectrum.py:526: note: Both left and right operands are unions
+ colour/adaptation/cie1994.py:322: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/adaptation/cie1994.py:322: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
+ colour/adaptation/cie1994.py:354: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/adaptation/cie1994.py:354: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
+ colour/colorimetry/tristimulus_values.py:2097: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ colour/colorimetry/tristimulus_values.py:2097: note: Possible overload variants:
+ colour/colorimetry/tristimulus_values.py:2097: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ colour/colorimetry/tristimulus_values.py:2097: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ colour/colorimetry/tristimulus_values.py:2097: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "float"  [operator]
+ colour/colorimetry/tristimulus_values.py:2097: note: Both left and right operands are unions

... (truncated 236 lines) ...

antidote (https://github.com/Finistere/antidote)
+ tests/test_examples.py:37: error: Invalid self argument "Files" to attribute function "read" with type "Callable[[str], str]"  [misc]
+ tests/test_examples.py:37: error: Too many arguments for "__call__" of "InjectedMethod"  [call-arg]
+ tests/test_examples.py:41: error: Invalid self argument "Files" to attribute function "read" with type "Callable[[str], str]"  [misc]
+ tests/test_examples.py:41: error: Too many arguments for "__call__" of "InjectedMethod"  [call-arg]
+ tests/core/test_inject.py:517: error: Attribute function "method" with type "Callable[[], object]" does not accept self argument  [misc]
+ tests/core/test_inject.py:519: error: Invalid self argument "Conf" to attribute function "get" with type "Callable[[str], object]"  [misc]
+ tests/core/test_inject.py:519: error: Too many arguments for "__call__" of "InjectedMethod"  [call-arg]
+ tests/core/test_inject.py:522: error: Attribute function "method" with type "Callable[[], object]" does not accept self argument  [misc]
+ tests/core/test_inject.py:523: error: Invalid self argument "Conf" to attribute function "get" with type "Callable[[str], object]"  [misc]
+ tests/core/test_inject.py:523: error: Unexpected keyword argument "key" for "__call__" of "InjectedMethod"  [call-arg]
+ src/antidote/core/__init__.py:1305: note: "__call__" of "InjectedMethod" defined here

hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/auxs/statstools.py:786: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:787: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:788: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:884: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:932: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:980: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:981: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:982: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/ppolytools.py:428: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/_numba/kernels/min_max_.py:176: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/_numba/kernels/min_max_.py:176: note: Possible overload variants:
+ pandas/core/_numba/kernels/min_max_.py:176: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/_numba/kernels/min_max_.py:176: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/util/_validators.py:441: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/util/_validators.py:441: note: Possible overload variants:
+ pandas/util/_validators.py:441: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/util/_validators.py:441: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/util/_validators.py:441: note: Left operand is of type "int | integer[Any]"
+ pandas/util/_validators.py:442: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/util/_validators.py:442: note: Left operand is of type "int | integer[Any]"
+ pandas/core/util/hashing.py:77: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/nanops.py:723: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:723: note: Possible overload variants:
+ pandas/core/nanops.py:723: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:723: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:723: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1276: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1276: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1284: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1284: note: Possible overload variants:
+ pandas/core/nanops.py:1284: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1284: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1284: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1287: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1287: note: Possible overload variants:
+ pandas/core/nanops.py:1287: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1287: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1287: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1357: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1357: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1358: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1358: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1359: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1359: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1371: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1371: note: Possible overload variants:
+ pandas/core/nanops.py:1371: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1371: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1371: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1385: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1385: note: Possible overload variants:
+ pandas/core/nanops.py:1385: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1385: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1385: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1577: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1577: note: Possible overload variants:
+ pandas/core/nanops.py:1577: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1577: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/dtypes/cast.py:1804: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/dtypes/cast.py:1804: note: Right operand is of type "int | integer[Any] | float"
+ pandas/core/dtypes/cast.py:1804: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "int"  [operator]
+ pandas/core/dtypes/cast.py:1804: note: Possible overload variants:
+ pandas/core/dtypes/cast.py:1804: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/dtypes/cast.py:1804: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/dtypes/cast.py:1804: note: Left operand is of type "int | integer[Any] | float"
+ pandas/core/missing.py:251: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/missing.py:969: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/missing.py:974: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:127: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:141: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/arrays/_ranges.py:141: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:141: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/arrays/_ranges.py:141: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/arrays/_ranges.py:141: error: Unsupported operand types for <= ("int" and "unsignedinteger[_64Bit]")  [operator]
+ pandas/core/arrays/_ranges.py:169: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:172: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:192: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:194: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:194: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:194: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/arrays/_ranges.py:194: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/arrays/_ranges.py:195: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:195: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:195: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/arrays/_ranges.py:195: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/arrays/_ranges.py:195: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
- pandas/tseries/frequencies.py:274: error: List comprehension has incompatible type List[floating[_64Bit]]; expected List[int]  [misc]
- pandas/tseries/frequencies.py:279: error: List comprehension has incompatible type List[floating[_64Bit]]; expected List[int]  [misc]
+ pandas/tseries/frequencies.py:274: error: Too many arguments for "__call__" of "_IntTrueDiv"  [call-arg]
+ pandas/tseries/frequencies.py:279: error: Too many arguments for "__call__" of "_IntTrueDiv"  [call-arg]
+ pandas/core/arrays/masked.py:214: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/arrays/masked.py:219: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/string_.py:937: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/arrays/datetimelike.py:1373: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1373: note: Left operand is of type "int | integer[Any]"
+ pandas/core/arrays/datetimelike.py:1431: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1431: note: Left operand is of type "int | integer[Any]"
- pandas/io/stata.py:1450: error: Argument 1 to "append" of "list" has incompatible type "unsignedinteger[_8Bit]"; expected "int"  [arg-type]
+ pandas/io/stata.py:1450: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/io/parsers/readers.py:641: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/io/parsers/readers.py:641: note: Possible overload variants:
+ pandas/io/parsers/readers.py:641: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/io/parsers/readers.py:641: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/io/parsers/readers.py:641: note: Left operand is of type "int | integer[Any]"
+ pandas/io/parsers/python_parser.py:1548: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/io/parsers/python_parser.py:1548: note: Possible overload variants:
+ pandas/io/parsers/python_parser.py:1548: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/io/parsers/python_parser.py:1548: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/io/parsers/python_parser.py:1548: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1647: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/core/indexing.py:1647: note: Possible overload variants:
+ pandas/core/indexing.py:1647: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/indexing.py:1647: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/indexing.py:1647: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1686: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/core/indexing.py:1686: note: Possible overload variants:
+ pandas/core/indexing.py:1686: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/indexing.py:1686: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/indexing.py:1686: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1686: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/generic.py:4189: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/generic.py:4189: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:184: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:184: note: Possible overload variants:
+ pandas/core/window/rolling.py:184: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:184: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:184: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:186: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:186: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:186: note: Possible overload variants:
+ pandas/core/window/rolling.py:186: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:186: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:186: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "integer[Any]"  [operator]
+ pandas/core/window/rolling.py:186: note: Both left and right operands are unions
+ pandas/core/window/rolling.py:218: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:218: note: Possible overload variants:
+ pandas/core/window/rolling.py:218: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:218: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:218: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:1160: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:1160: note: Possible overload variants:
+ pandas/core/window/rolling.py:1160: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:1160: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:1160: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:1974: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:1974: note: Possible overload variants:
+ pandas/core/window/rolling.py:1974: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:1974: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:1974: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/tile.py:362: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/reshape/tile.py:362: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/tile.py:366: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/reshape/tile.py:366: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/merge.py:2458: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/reshape/merge.py:2458: note: Possible overload variants:
+ pandas/core/reshape/merge.py:2458: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/reshape/merge.py:2458: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/reshape/merge.py:2458: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1059: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/indexes/range.py:1059: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1220: error: Unsupported operand types for // ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/range.py:1220: note: Right operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1221: error: Unsupported operand types for // ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/range.py:1221: note: Right operand is of type "int | integer[Any]"

... (truncated 52 lines) ...

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/feature_benchmark/filter.py:31: error: Unsupported operand types for * ("int" and "floating[Any]")  [operator]

scipy (https://github.com/scipy/scipy)
+ scipy/stats/_multicomp.py:99: error: Unsupported operand types for - ("int" and "floating[Any]")  [operator]
+ scipy/stats/_multicomp.py:99: error: Unsupported operand types for - ("int" and "integer[Any]")  [operator]
+ scipy/stats/_multicomp.py:99: note: Right operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:121: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ scipy/stats/_multicomp.py:121: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ scipy/stats/_multicomp.py:121: note: Left operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:160: error: Unsupported operand types for < ("int" and "floating[Any]")  [operator]
+ scipy/stats/_multicomp.py:160: error: Unsupported operand types for < ("int" and "integer[Any]")  [operator]
+ scipy/stats/_multicomp.py:160: note: Right operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:160: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ scipy/stats/_multicomp.py:160: note: Possible overload variants:
+ scipy/stats/_multicomp.py:160: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ scipy/stats/_multicomp.py:160: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ scipy/stats/_multicomp.py:160: note: Left operand is of type "float | floating[Any] | integer[Any]"
+ scipy/spatial/tests/test_qhull.py:62: error: Unsupported operand types for - ("int" and "floating[_64Bit]")  [operator]
+ scipy/interpolate/tests/test_bary_rational.py:34: error: Unsupported operand types for * ("float" and "floating[_64Bit]")  [operator]

arviz (https://github.com/arviz-devs/arviz)
+ arviz/tests/base_tests/test_stats.py:384: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]

jax (https://github.com/google/jax)
+ jax/_src/lax/slicing.py:3149: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3149: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3149: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3149: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3149: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3150: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3150: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3150: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3150: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3150: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3159: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3159: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3159: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3159: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3159: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3160: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3160: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3160: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3160: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3160: note: Left operand is of type "int | integer[Any]"
+ jax/_src/numpy/reductions.py:768: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/numpy/reductions.py:768: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/reductions.py:768: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | int | float | complex"
+ jax/_src/numpy/indexing.py:594: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/numpy/indexing.py:594: note: Possible overload variants:
+ jax/_src/numpy/indexing.py:594: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/numpy/indexing.py:594: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/numpy/indexing.py:594: note: Left operand is of type "int | integer[Any]"
+ jax/_src/numpy/indexing.py:597: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ jax/_src/numpy/indexing.py:597: note: Possible overload variants:
+ jax/_src/numpy/indexing.py:597: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/numpy/indexing.py:597: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/numpy/indexing.py:597: note: Left operand is of type "integer[Any] | int"
+ jax/_src/numpy/fft.py:1191: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/numpy/fft.py:1191: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/fft.py:1191: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/fft.py:1234: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/numpy/fft.py:1234: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/fft.py:1234: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/nn/initializers.py:267: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/nn/initializers.py:267: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/nn/initializers.py:267: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/lax_numpy.py:3873: error: Too many arguments for "__call__" of "_BoolTrueDiv"  [call-arg]
+ jax/_src/numpy/lax_numpy.py:3873: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/lax_numpy.py:3873: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/lax_numpy.py:3874: error: Too many arguments for "__call__" of "_BoolTrueDiv"  [call-arg]
+ jax/_src/numpy/lax_numpy.py:3874: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/lax_numpy.py:3874: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/numpy/lax_numpy.py:6409: error: Unsupported operand types for * ("int" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/numpy/lax_numpy.py:6409: error: Unsupported operand types for * ("int" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/numpy/lax_numpy.py:6409: note: Both left and right operands are unions
+ jax/_src/nn/functions.py:238: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/nn/functions.py:238: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/nn/functions.py:238: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/nn/functions.py:798: error: Too many arguments for "__call__" of "_BoolOp"  [call-arg]
+ jax/_src/nn/functions.py:798: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/nn/functions.py:798: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/random.py:1722: error: Unsupported operand types for + ("float" and "floating[Any]")  [operator]
+ jax/_src/scipy/special.py:2870: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ jax/_src/scipy/signal.py:792: error: Unsupported operand types for / ("int" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/scipy/signal.py:792: error: Unsupported operand types for / ("int" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/scipy/signal.py:792: note: Right operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/scipy/signal.py:794: error: Unsupported operand types for / ("int" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/scipy/signal.py:794: error: Unsupported operand types for / ("int" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/scipy/signal.py:794: note: Right operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/_src/scipy/signal.py:817: error: Unsupported operand types for / ("float" and "numpy.bool[builtins.bool]")  [operator]
+ jax/_src/scipy/signal.py:817: error: Unsupported operand types for / ("float" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/scipy/signal.py:817: note: Right operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex"
+ jax/experimental/roofline/roofline.py:164: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ jax/_src/pallas/utils.py:54: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ jax/experimental/roofline/rooflines.py:167: error: Unsupported operand types for / ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/roofline/rooflines.py:600: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ jax/experimental/roofline/rooflines.py:603: error: Unsupported operand types for + ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/_src/internal_test_util/test_harnesses.py:3426: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ jax/_src/internal_test_util/test_harnesses.py:3426: note: Possible overload variants:
+ jax/_src/internal_test_util/test_harnesses.py:3426: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/internal_test_util/test_harnesses.py:3426: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/experimental/sparse/test_util.py:161: error: Unsupported operand types for * ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/sparse/test_util.py:161: error: Unsupported operand types for * ("float" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/sparse/test_util.py:161: note: Left operand is of type "int | float"
+ jax/experimental/pallas/ops/tpu/random/threefry.py:51: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ jax/experimental/pallas/ops/tpu/random/threefry.py:51: note: Possible overload variants:
+ jax/experimental/pallas/ops/tpu/random/threefry.py:51: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/experimental/pallas/ops/tpu/random/threefry.py:51: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/experimental/pallas/ops/tpu/random/philox.py:99: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ jax/experimental/pallas/ops/tpu/random/philox.py:99: note: Possible overload variants:
+ jax/experimental/pallas/ops/tpu/random/philox.py:99: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/experimental/pallas/ops/tpu/random/philox.py:99: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]

optuna (https://github.com/optuna/optuna)
+ optuna/samplers/_tpe/sampler.py:779: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "int"  [operator]
+ optuna/samplers/_tpe/sampler.py:779: note: Possible overload variants:
+ optuna/samplers/_tpe/sampler.py:779: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ optuna/samplers/_tpe/sampler.py:779: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]

AutoSplit (https://github.com/Toufool/AutoSplit)
+ src/compare.py:109:21: error: Too many arguments for "__call__" of "_IntTrueDiv"  [call-arg]

dedupe (https://github.com/dedupeio/dedupe)
+ dedupe/clustering.py:58: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]

spark (https://github.com/apache/spark)
+ python/pyspark/pandas/indexing.py:1663: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ python/pyspark/pandas/indexing.py:1663: note: Possible overload variants:
+ python/pyspark/pandas/indexing.py:1663: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ python/pyspark/pandas/indexing.py:1663: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ python/pyspark/pandas/indexing.py:1663: note: Left operand is of type "int | signedinteger[Any]"

... (truncated 119 lines) ...```

github-actions[bot] avatar Jun 15 '25 12:06 github-actions[bot]

The relevant definitions in numpy: https://github.com/search?q=repo%3Anumpy%2Fnumpy%20_SignedIntOp&type=code. Possibly the only way forward is to add some heavy hard-coded special-casing while numpy definitions are being fixed.

cc @jorenham It may be good to finally fix this little inconsistency in mypy, see (https://github.com/python/mypy/pull/15993#issuecomment-1699493282 for some more details).

ilevkivskyi avatar Aug 31 '25 15:08 ilevkivskyi

Yea that part of the numpy stubs has been bothering me for a while now. I've made some progress in fixing those "methods" over the last year, but there's indeed still work to be done.

Keep in mind that if I fix this, and I do so by the book, then it'll be in numpy 2.4, which will be released in 5 months or so. If we also take the SPEC 0 support window into account (which we should, because in general numpy users often use older versions), which means that we should add another two years to this.

What I think I'll do is fix this, and if mypy_primer remains silent, then I'll try to sneak it in as a 2.3 patch release. It's a bit risky, but it'll save half a year of incorrect behavior, so it's probably worth risk. That still leaves the 2 year-long support window though...

Special casing numpy also doesn't sound very attractive to me either. But I also don't want to be the reason that mypy can't proceed with this. Maybe we should wait until there is at least one numpy version where this will work correctly (i.e. ignore the support window), so that we can tell numpy users that are affected by this that they should upgrade to the latest numpy release? In the worst case, that will be 5 months, and in the best case that'll be one month.

Either way, thanks for the ping; I really appreciate it :)

jorenham avatar Aug 31 '25 19:08 jorenham

The NumPy issues have been fixed (on main) and will be included in 2.3.4 or 2.4.0, whichever comes first.

jorenham avatar Sep 15 '25 22:09 jorenham

The NumPy issues have been fixed (on main) and will be included in 2.3.4 or 2.4.0, whichever comes first.

The 2.3.4 release is planned for this weekend

jorenham avatar Oct 10 '25 13:10 jorenham

@jorenham Great, thanks for the update!

ilevkivskyi avatar Oct 10 '25 13:10 ilevkivskyi

Diff from mypy_primer, showing the effect of this PR on open source code:

hydpy (https://github.com/hydpy-dev/hydpy)
+ hydpy/auxs/statstools.py:987: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:988: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:989: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:1085: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:1133: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:1181: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:1182: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/statstools.py:1183: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ hydpy/auxs/ppolytools.py:428: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]

optuna (https://github.com/optuna/optuna)
+ optuna/samplers/_tpe/sampler.py:836: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "int"  [operator]
+ optuna/samplers/_tpe/sampler.py:836: note: Possible overload variants:
+ optuna/samplers/_tpe/sampler.py:836: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ optuna/samplers/_tpe/sampler.py:836: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]

spark (https://github.com/apache/spark)
+ python/pyspark/pandas/indexing.py:1663: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ python/pyspark/pandas/indexing.py:1663: note: Possible overload variants:
+ python/pyspark/pandas/indexing.py:1663: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ python/pyspark/pandas/indexing.py:1663: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ python/pyspark/pandas/indexing.py:1663: note: Left operand is of type "int | signedinteger[Any]"
+ python/pyspark/pandas/indexing.py:1676: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ python/pyspark/pandas/indexing.py:1676: note: Possible overload variants:
+ python/pyspark/pandas/indexing.py:1676: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ python/pyspark/pandas/indexing.py:1676: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ python/pyspark/pandas/indexing.py:1676: note: Left operand is of type "int | signedinteger[Any]"
+ python/pyspark/ml/linalg/__init__.py:632: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ python/pyspark/ml/linalg/__init__.py:632: note: Possible overload variants:
+ python/pyspark/ml/linalg/__init__.py:632: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ python/pyspark/ml/linalg/__init__.py:632: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ python/pyspark/ml/linalg/__init__.py:637: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ python/pyspark/ml/linalg/__init__.py:637: note: Possible overload variants:
+ python/pyspark/ml/linalg/__init__.py:637: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ python/pyspark/ml/linalg/__init__.py:637: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]

colour (https://github.com/colour-science/colour)
+ colour/utilities/array.py:2482: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/utilities/array.py:2482: note: Both left and right operands are unions
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:280: error: Unsupported operand types for * ("float" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:280: error: Unsupported operand types for * ("float" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:280: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:357: error: Unsupported operand types for * ("float" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:357: error: Unsupported operand types for * ("float" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/transfer_functions/rimm_romm_rgb.py:357: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
- colour/io/luts/lut.py:1432: error: No overload variant of "pad" matches argument types "ndarray[Any, Any]", "tuple[int, Any | signedinteger[_8Bit] | signedinteger[_16Bit] | signedinteger[_32Bit] | signedinteger[_64Bit] | unsignedinteger[_8Bit] | unsignedinteger[_16Bit] | unsignedinteger[_32Bit] | unsignedinteger[_64Bit]]", "str", "float"  [call-overload]
+ colour/io/luts/lut.py:1432: error: No overload variant of "pad" matches argument types "ndarray[Any, Any]", "tuple[int, Any]", "str", "float"  [call-overload]
+ colour/io/luts/lut.py:1434: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/io/luts/lut.py:1434: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ colour/io/luts/lut.py:1434: note: Left operand is of type "Any | signedinteger[_8Bit] | signedinteger[_16Bit] | signedinteger[_32Bit] | signedinteger[_64Bit] | unsignedinteger[_8Bit] | unsignedinteger[_16Bit] | unsignedinteger[_32Bit] | unsignedinteger[_64Bit]"
+ colour/appearance/hunt.py:657: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/appearance/hunt.py:657: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
+ colour/appearance/hke.py:130: error: Unsupported operand types for * ("float" and "floating[_16Bit]")  [operator]
+ colour/appearance/hke.py:130: error: Unsupported operand types for * ("float" and "floating[_32Bit]")  [operator]
+ colour/appearance/hke.py:130: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
+ colour/appearance/hke.py:295: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/appearance/hke.py:295: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
- colour/continuous/signal.py:838: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "Buffer"  [call-overload]
+ colour/continuous/signal.py:838: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "Buffer"  [operator]
- colour/continuous/signal.py:838: note:     def __call__(self, complex | number[Any, int | float | complex] | numpy.bool[builtins.bool], /) -> numpy.bool[builtins.bool]
- colour/continuous/signal.py:838: note:     def __call__(self, _SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | complex | _NestedSequence[complex], /) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
- colour/continuous/signal.py:838: note:     def __call__(self, _NestedSequence[_SupportsGE], /) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
- colour/continuous/signal.py:838: note:     def __call__(self, _SupportsGE, /) -> numpy.bool[builtins.bool]
+ colour/continuous/signal.py:838: note:     def __call__(self) -> numpy.bool[builtins.bool]
- colour/continuous/signal.py:838: error: Argument 1 to "__call__" of "_ComparisonOpLE" has incompatible type "_NestedSequence[complex | bytes | str]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | complex | _NestedSequence[complex]"  [arg-type]
+ colour/continuous/signal.py:838: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ colour/continuous/signal.py:838: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "_SupportsArray[dtype[Any]]"  [operator]
+ colour/continuous/signal.py:838: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "_NestedSequence[_SupportsArray[dtype[Any]]]"  [operator]
+ colour/continuous/signal.py:838: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "complex"  [operator]
+ colour/continuous/signal.py:838: error: Unsupported operand types for >= ("bytes" and "floating[_16Bit]")  [operator]
+ colour/continuous/signal.py:838: error: Unsupported operand types for >= ("bytes" and "floating[_32Bit]")  [operator]
+ colour/continuous/signal.py:838: error: Unsupported operand types for >= ("bytes" and "float64")  [operator]
+ colour/continuous/signal.py:838: error: Unsupported operand types for >= ("str" and "floating[_16Bit]")  [operator]
+ colour/continuous/signal.py:838: error: Unsupported operand types for >= ("str" and "floating[_32Bit]")  [operator]
+ colour/continuous/signal.py:838: error: Unsupported operand types for >= ("str" and "float64")  [operator]
+ colour/continuous/signal.py:838: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "_NestedSequence[complex | bytes | str]"  [operator]
- colour/continuous/signal.py:838: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "slice[Any, Any, Any]"  [call-overload]
+ colour/continuous/signal.py:838: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "slice[Any, Any, Any]"  [operator]
- colour/continuous/signal.py:839: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "Buffer"  [call-overload]
+ colour/continuous/signal.py:839: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "Buffer"  [operator]
- colour/continuous/signal.py:839: note:     def __call__(self, complex | number[Any, int | float | complex] | numpy.bool[builtins.bool], /) -> numpy.bool[builtins.bool]
- colour/continuous/signal.py:839: note:     def __call__(self, _SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | complex | _NestedSequence[complex], /) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
- colour/continuous/signal.py:839: note:     def __call__(self, _NestedSequence[_SupportsGT], /) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
- colour/continuous/signal.py:839: note:     def __call__(self, _SupportsGT, /) -> numpy.bool[builtins.bool]
+ colour/continuous/signal.py:839: note:     def __call__(self) -> numpy.bool[builtins.bool]
- colour/continuous/signal.py:839: error: Argument 1 to "__call__" of "_ComparisonOpGE" has incompatible type "_NestedSequence[complex | bytes | str]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | number[Any, int | float | complex]]]] | complex | _NestedSequence[complex]"  [arg-type]
+ colour/continuous/signal.py:839: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ colour/continuous/signal.py:839: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "_SupportsArray[dtype[Any]]"  [operator]
+ colour/continuous/signal.py:839: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "_NestedSequence[_SupportsArray[dtype[Any]]]"  [operator]
+ colour/continuous/signal.py:839: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "complex"  [operator]
+ colour/continuous/signal.py:839: error: Unsupported operand types for <= ("bytes" and "floating[_16Bit]")  [operator]
+ colour/continuous/signal.py:839: error: Unsupported operand types for <= ("bytes" and "floating[_32Bit]")  [operator]
+ colour/continuous/signal.py:839: error: Unsupported operand types for <= ("bytes" and "float64")  [operator]
+ colour/continuous/signal.py:839: error: Unsupported operand types for <= ("str" and "floating[_16Bit]")  [operator]
+ colour/continuous/signal.py:839: error: Unsupported operand types for <= ("str" and "floating[_32Bit]")  [operator]
+ colour/continuous/signal.py:839: error: Unsupported operand types for <= ("str" and "float64")  [operator]
+ colour/continuous/signal.py:839: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "_NestedSequence[complex | bytes | str]"  [operator]
- colour/continuous/signal.py:839: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "slice[Any, Any, Any]"  [call-overload]
+ colour/continuous/signal.py:839: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "slice[Any, Any, Any]"  [operator]
+ colour/models/rgb/transfer_functions/itur_bt_2100.py:591: error: Unsupported operand types for * ("int" and "floating[_16Bit]")  [operator]
+ colour/models/rgb/transfer_functions/itur_bt_2100.py:591: error: Unsupported operand types for * ("int" and "floating[_32Bit]")  [operator]
+ colour/models/rgb/transfer_functions/itur_bt_2100.py:591: note: Right operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/colorimetry/spectrum.py:545: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/colorimetry/spectrum.py:545: note: Both left and right operands are unions
+ colour/adaptation/cie1994.py:327: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/adaptation/cie1994.py:327: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
+ colour/adaptation/cie1994.py:359: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/adaptation/cie1994.py:359: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64 | ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"
+ colour/colorimetry/tristimulus_values.py:2121: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ colour/colorimetry/tristimulus_values.py:2121: note: Possible overload variants:
+ colour/colorimetry/tristimulus_values.py:2121: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ colour/colorimetry/tristimulus_values.py:2121: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ colour/colorimetry/tristimulus_values.py:2121: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "float"  [operator]
+ colour/colorimetry/tristimulus_values.py:2121: note: Both left and right operands are unions
+ colour/colorimetry/tristimulus_values.py:2121: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ colour/colorimetry/tristimulus_values.py:2121: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "float"  [operator]
+ colour/volume/rgb.py:290: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/volume/rgb.py:290: note: Left operand is of type "signedinteger[_32Bit] | signedinteger[_64Bit]"
+ colour/io/fichet2021.py:754: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/temperature/ohno2013.py:226: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/temperature/ohno2013.py:232: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/temperature/ohno2013.py:237: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/temperature/ohno2013.py:237: error: Invalid index type "tuple[Any, EllipsisType]" for "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected type "ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...]"  [index]
+ colour/temperature/ohno2013.py:239: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/temperature/ohno2013.py:239: error: Invalid index type "tuple[Any, EllipsisType]" for "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected type "ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]] | tuple[ndarray[tuple[Any, ...], dtype[integer[Any] | numpy.bool[builtins.bool]]], ...]"  [index]
+ colour/characterisation/aces_it.py:387: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ colour/plotting/tm3018/components.py:547: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/plotting/tm3018/components.py:547: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/plotting/tm3018/components.py:549: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/plotting/tm3018/components.py:549: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/plotting/tm3018/components.py:562: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/plotting/tm3018/components.py:562: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/plotting/tm3018/components.py:564: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/plotting/tm3018/components.py:564: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/recovery/tests/test_mallett2019.py:75: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "float"  [operator]
+ colour/recovery/tests/test_mallett2019.py:75: note: Possible overload variants:
+ colour/recovery/tests/test_mallett2019.py:75: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ colour/recovery/tests/test_mallett2019.py:75: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ colour/examples/plotting/examples_section_plots.py:124: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/examples/plotting/examples_section_plots.py:135: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/examples/characterisation/examples_colour_checkers.py:52: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ colour/examples/characterisation/examples_colour_checkers.py:52: note: Left operand is of type "floating[_16Bit] | floating[_32Bit] | float64"
+ colour/examples/characterisation/examples_colour_checkers.py:52: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ colour/examples/characterisation/examples_colour_checkers.py:52: note: Possible overload variants:
+ colour/examples/characterisation/examples_colour_checkers.py:52: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ colour/examples/characterisation/examples_colour_checkers.py:52: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ colour/algebra/tests/test_common.py:204: error: Argument 1 to "assert_allclose" has incompatible type "ndarray[tuple[Any, ...], dtype[floating[_16Bit] | floating[_32Bit] | float64]]"; expected "_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]] | _NestedSequence[_SupportsArray[dtype[numpy.bool[builtins.bool] | integer[Any] | timedelta64[timedelta | int | None]]]] | int | _NestedSequence[int]"  [arg-type]

... (truncated 3 lines) ...

pandas (https://github.com/pandas-dev/pandas)
+ pandas/core/_numba/kernels/min_max_.py:176: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/_numba/kernels/min_max_.py:176: note: Possible overload variants:
+ pandas/core/_numba/kernels/min_max_.py:176: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/_numba/kernels/min_max_.py:176: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/util/hashing.py:77: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/nanops.py:725: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:725: note: Possible overload variants:
+ pandas/core/nanops.py:725: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:725: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:725: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1283: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1283: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1291: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1291: note: Possible overload variants:
+ pandas/core/nanops.py:1291: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1291: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1291: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1294: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1294: note: Possible overload variants:
+ pandas/core/nanops.py:1294: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1294: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1294: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1393: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1393: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1394: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1394: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1395: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ pandas/core/nanops.py:1395: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1400: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1400: note: Possible overload variants:
+ pandas/core/nanops.py:1400: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1400: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1400: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1414: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1414: note: Possible overload variants:
+ pandas/core/nanops.py:1414: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1414: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/nanops.py:1414: note: Left operand is of type "floating[Any] | ndarray[tuple[Any, ...], dtype[floating[Any]]]"
+ pandas/core/nanops.py:1606: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/nanops.py:1606: note: Possible overload variants:
+ pandas/core/nanops.py:1606: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/nanops.py:1606: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/dtypes/cast.py:1666: error: Unsupported operand types for <= ("int" and "integer[Any]")  [operator]
+ pandas/core/dtypes/cast.py:1666: note: Right operand is of type "int | integer[Any] | float"
+ pandas/core/dtypes/cast.py:1666: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "int"  [operator]
+ pandas/core/dtypes/cast.py:1666: note: Possible overload variants:
+ pandas/core/dtypes/cast.py:1666: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/dtypes/cast.py:1666: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/dtypes/cast.py:1666: note: Left operand is of type "int | integer[Any] | float"
+ pandas/core/missing.py:267: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/missing.py:984: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/missing.py:989: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:133: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:147: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/arrays/_ranges.py:147: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:147: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/arrays/_ranges.py:147: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/arrays/_ranges.py:147: error: Unsupported operand types for <= ("int" and "unsignedinteger[_64Bit]")  [operator]
+ pandas/core/arrays/_ranges.py:175: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:178: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:198: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/arrays/_ranges.py:200: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:200: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:200: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/arrays/_ranges.py:200: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/arrays/_ranges.py:201: error: No overload variant of "__call__" of "_ComparisonOpLE" matches argument type "unsignedinteger[_64Bit]"  [operator]
+ pandas/core/arrays/_ranges.py:201: note: Possible overload variants:
+ pandas/core/arrays/_ranges.py:201: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/arrays/_ranges.py:201: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/arrays/_ranges.py:201: error: Too many arguments for "__call__" of "_UnsignedIntOp"  [call-arg]
+ pandas/core/algorithms.py:1411: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/core/algorithms.py:1411: note: Possible overload variants:
+ pandas/core/algorithms.py:1411: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/algorithms.py:1411: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/algorithms.py:1411: note: Left operand is of type "int | integer[Any]"
+ pandas/core/algorithms.py:1422: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/core/algorithms.py:1422: note: Possible overload variants:
+ pandas/core/algorithms.py:1422: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/algorithms.py:1422: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/algorithms.py:1422: note: Left operand is of type "int | integer[Any]"
+ pandas/core/algorithms.py:1426: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ pandas/core/algorithms.py:1426: note: Possible overload variants:
+ pandas/core/algorithms.py:1426: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/algorithms.py:1426: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/algorithms.py:1426: note: Left operand is of type "int | integer[Any]"
+ pandas/core/arrays/masked.py:234: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/arrays/masked.py:239: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ pandas/core/arrays/string_.py:995: error: Unsupported operand types for - ("int" and "signedinteger[_32Bit | _64Bit]")  [operator]
+ pandas/core/arrays/datetimelike.py:1404: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1404: note: Left operand is of type "int | integer[Any]"
+ pandas/core/arrays/datetimelike.py:1466: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/arrays/datetimelike.py:1466: note: Left operand is of type "int | integer[Any]"
+ pandas/io/parsers/readers.py:643: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/io/parsers/readers.py:643: note: Possible overload variants:
+ pandas/io/parsers/readers.py:643: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/io/parsers/readers.py:643: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/io/parsers/readers.py:643: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1680: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/core/indexing.py:1680: note: Possible overload variants:
+ pandas/core/indexing.py:1680: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/indexing.py:1680: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/indexing.py:1680: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1719: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ pandas/core/indexing.py:1719: note: Possible overload variants:
+ pandas/core/indexing.py:1719: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/indexing.py:1719: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/indexing.py:1719: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexing.py:1719: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/generic.py:4198: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/generic.py:4198: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:184: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:184: note: Possible overload variants:
+ pandas/core/window/rolling.py:184: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:184: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:184: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:186: error: Unsupported operand types for > ("int" and "integer[Any]")  [operator]
+ pandas/core/window/rolling.py:186: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:186: note: Possible overload variants:
+ pandas/core/window/rolling.py:186: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:186: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:186: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "integer[Any]"  [operator]
+ pandas/core/window/rolling.py:186: note: Both left and right operands are unions
+ pandas/core/window/rolling.py:218: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:218: note: Possible overload variants:
+ pandas/core/window/rolling.py:218: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:218: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:218: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:1160: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:1160: note: Possible overload variants:
+ pandas/core/window/rolling.py:1160: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:1160: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:1160: note: Left operand is of type "int | integer[Any]"
+ pandas/core/window/rolling.py:1974: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/window/rolling.py:1974: note: Possible overload variants:
+ pandas/core/window/rolling.py:1974: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/window/rolling.py:1974: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/window/rolling.py:1974: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/tile.py:365: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/reshape/tile.py:365: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/tile.py:369: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/reshape/tile.py:369: note: Left operand is of type "int | integer[Any]"
+ pandas/core/reshape/merge.py:2473: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/reshape/merge.py:2473: note: Possible overload variants:
+ pandas/core/reshape/merge.py:2473: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ pandas/core/reshape/merge.py:2473: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ pandas/core/reshape/merge.py:2473: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1059: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ pandas/core/indexes/range.py:1059: note: Left operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1221: error: Unsupported operand types for // ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/range.py:1221: note: Right operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1222: error: Unsupported operand types for // ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/range.py:1222: note: Right operand is of type "int | integer[Any]"
+ pandas/core/indexes/range.py:1227: error: Unsupported operand types for // ("int" and "integer[Any]")  [operator]
+ pandas/core/indexes/range.py:1227: note: Right operand is of type "int | integer[Any]"
+ pandas/core/indexes/multi.py:1692: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ pandas/core/indexes/multi.py:1692: note: Possible overload variants:
+ pandas/core/indexes/multi.py:1692: note:     def __call__(self) -> numpy.bool[builtins.bool]

... (truncated 41 lines) ...

jax (https://github.com/google/jax)
+ jax/_src/lax/slicing.py:3445: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3445: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3445: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3445: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3445: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3446: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3446: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3446: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3446: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3446: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3455: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3455: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3455: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3455: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3455: note: Left operand is of type "int | integer[Any]"
+ jax/_src/lax/slicing.py:3456: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/lax/slicing.py:3456: note: Possible overload variants:
+ jax/_src/lax/slicing.py:3456: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/lax/slicing.py:3456: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/lax/slicing.py:3456: note: Left operand is of type "int | integer[Any]"
+ jax/_src/numpy/reductions.py:770: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/reductions.py:770: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | int | float | complex | TypedNdArray"
+ jax/_src/numpy/indexing.py:597: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ jax/_src/numpy/indexing.py:597: note: Possible overload variants:
+ jax/_src/numpy/indexing.py:597: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/numpy/indexing.py:597: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/numpy/indexing.py:597: note: Left operand is of type "int | integer[Any]"
+ jax/_src/numpy/indexing.py:600: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ jax/_src/numpy/indexing.py:600: note: Possible overload variants:
+ jax/_src/numpy/indexing.py:600: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/numpy/indexing.py:600: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/_src/numpy/indexing.py:600: note: Left operand is of type "int | integer[Any]"
+ jax/_src/numpy/lax_numpy.py:6406: error: Unsupported operand types for * ("int" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/numpy/lax_numpy.py:6406: note: Both left and right operands are unions
+ jax/_src/numpy/fft.py:1196: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/fft.py:1196: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex | TypedNdArray"
+ jax/_src/numpy/fft.py:1240: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/numpy/fft.py:1240: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex | TypedNdArray"
+ jax/_src/nn/functions.py:241: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/nn/functions.py:241: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex | TypedNdArray"
+ jax/_src/nn/functions.py:832: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/nn/functions.py:832: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex | TypedNdArray"
+ jax/_src/random.py:1853: error: Unsupported operand types for + ("float" and "floating[Any]")  [operator]
+ jax/_src/nn/initializers.py:271: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ jax/_src/nn/initializers.py:271: note: Left operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex | TypedNdArray"
+ jax/_src/scipy/special.py:3071: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ jax/_src/scipy/signal.py:799: error: Unsupported operand types for / ("int" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/scipy/signal.py:799: note: Right operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex | TypedNdArray"
+ jax/_src/scipy/signal.py:801: error: Unsupported operand types for / ("int" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/scipy/signal.py:801: note: Right operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex | TypedNdArray"
+ jax/_src/scipy/signal.py:824: error: Unsupported operand types for / ("float" and "number[Any, int | float | complex]")  [operator]
+ jax/_src/scipy/signal.py:824: note: Right operand is of type "Array | ndarray[tuple[Any, ...], dtype[Any]] | numpy.bool[builtins.bool] | number[Any, int | float | complex] | builtins.bool | int | float | complex | TypedNdArray"
+ jax/_src/pallas/utils.py:56: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ jax/experimental/roofline/rooflines.py:223: error: Unsupported operand types for / ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/roofline/rooflines.py:769: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ jax/experimental/roofline/rooflines.py:772: error: Unsupported operand types for + ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/mosaic/gpu/fragmented_array.py:2650: error: Too many arguments for "__call__" of "_SignedIntMod"  [call-arg]
+ jax/_src/internal_test_util/test_harnesses.py:3441: error: No overload variant of "__call__" of "_ComparisonOpGE" matches argument type "int"  [operator]
+ jax/_src/internal_test_util/test_harnesses.py:3441: note: Possible overload variants:
+ jax/_src/internal_test_util/test_harnesses.py:3441: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/_src/internal_test_util/test_harnesses.py:3441: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/experimental/sparse/test_util.py:161: error: Unsupported operand types for * ("int" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/sparse/test_util.py:161: error: Unsupported operand types for * ("float" and "signedinteger[_64Bit]")  [operator]
+ jax/experimental/sparse/test_util.py:161: note: Left operand is of type "int | float"
+ jax/_src/pallas/mosaic_gpu/helpers.py:266: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ jax/_src/pallas/mosaic_gpu/helpers.py:280: error: Unsupported operand types for // ("int" and "signedinteger[_32Bit]")  [operator]
+ jax/experimental/pallas/ops/tpu/random/threefry.py:51: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ jax/experimental/pallas/ops/tpu/random/threefry.py:51: note: Possible overload variants:
+ jax/experimental/pallas/ops/tpu/random/threefry.py:51: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/experimental/pallas/ops/tpu/random/threefry.py:51: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ jax/experimental/pallas/ops/tpu/random/philox.py:99: error: No overload variant of "__call__" of "_ComparisonOpGT" matches argument type "int"  [operator]
+ jax/experimental/pallas/ops/tpu/random/philox.py:99: note: Possible overload variants:
+ jax/experimental/pallas/ops/tpu/random/philox.py:99: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ jax/experimental/pallas/ops/tpu/random/philox.py:99: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]

arviz (https://github.com/arviz-devs/arviz)
+ arviz/tests/base_tests/test_stats.py:384: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]

scipy (https://github.com/scipy/scipy)
+ scipy/stats/_multicomp.py:100: error: Unsupported operand types for - ("int" and "floating[Any]")  [operator]
+ scipy/stats/_multicomp.py:100: error: Unsupported operand types for - ("int" and "integer[Any]")  [operator]
+ scipy/stats/_multicomp.py:100: note: Right operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:122: error: Too many arguments for "__call__" of "_FloatOp"  [call-arg]
+ scipy/stats/_multicomp.py:122: error: Too many arguments for "__call__" of "_NumberOp"  [call-arg]
+ scipy/stats/_multicomp.py:122: note: Left operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:161: error: Unsupported operand types for < ("int" and "floating[Any]")  [operator]
+ scipy/stats/_multicomp.py:161: error: Unsupported operand types for < ("int" and "integer[Any]")  [operator]
+ scipy/stats/_multicomp.py:161: note: Right operand is of type "float | floating[Any] | integer[Any]"
+ scipy/stats/_multicomp.py:161: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ scipy/stats/_multicomp.py:161: note: Possible overload variants:
+ scipy/stats/_multicomp.py:161: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ scipy/stats/_multicomp.py:161: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ scipy/stats/_multicomp.py:161: note: Left operand is of type "float | floating[Any] | integer[Any]"
+ scipy/spatial/transform/tests/test_rigid_transform.py:187: error: Too many arguments for "__call__" of "_SignedIntOp"  [call-arg]
+ scipy/spatial/tests/test_qhull.py:62: error: Unsupported operand types for - ("int" and "floating[_64Bit]")  [operator]
+ scipy/interpolate/tests/test_bary_rational.py:34: error: Unsupported operand types for * ("float" and "floating[_64Bit]")  [operator]

pandas-stubs (https://github.com/pandas-dev/pandas-stubs)
+ tests/scalars/test_scalars.py:849: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/scalars/test_scalars.py:850: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/scalars/test_scalars.py:866: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/scalars/test_scalars.py:867: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/scalars/test_scalars.py:1224: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/scalars/test_scalars.py:1225: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/scalars/test_scalars.py:1241: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]
+ tests/scalars/test_scalars.py:1242: error: Expression is of type "builtins.bool", not "numpy.bool[builtins.bool]"  [assert-type]

materialize (https://github.com/MaterializeInc/materialize)
+ misc/python/materialize/feature_benchmark/filter.py:31: error: Unsupported operand types for * ("int" and "floating[Any]")  [operator]

static-frame (https://github.com/static-frame/static-frame)
+ static_frame/core/util.py:4014: error: No overload variant of "__call__" of "_ComparisonOpLT" matches argument type "int"  [operator]
+ static_frame/core/util.py:4014: note: Possible overload variants:
+ static_frame/core/util.py:4014: note:     def __call__(self) -> numpy.bool[builtins.bool]
+ static_frame/core/util.py:4014: note:     def __call__(self) -> ndarray[tuple[Any, ...], dtype[numpy.bool[builtins.bool]]]
+ static_frame/core/util.py:4014: note: Left operand is of type "int | integer[Any]"

... (truncated 136 lines) ...```

github-actions[bot] avatar Oct 10 '25 13:10 github-actions[bot]

The NumPy issues have been fixed (on main) and will be included in 2.3.4 or 2.4.0, whichever comes first.

The 2.3.4 release is planned for this weekend

There was a bit of a delay apparently, but the 2.3.4 wheels have just been uploaded to PyPI: https://pypi.org/project/numpy/

jorenham avatar Oct 15 '25 18:10 jorenham