-
-
Couldn't load subscription status.
- Fork 3k
Fix binding difference between callables and callback protocols #15993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
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. |
|
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 |
|
im working around this using a Concatenate and mypy_extensions.Arg for now |
|
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 and for callables its also a bug to pretend they bind, in particular when i'd like if there was a typing helper for this so one could spell Binding/nonBinding locations for those |
|
i learned that the workaround with mypy_extensions no longer works |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
The relevant definitions in cc @jorenham It may be good to finally fix this little inconsistency in mypy, see (#15993 (comment) for some more details). |
|
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 :) |
|
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 Great, thanks for the update! |
|
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) ...``` |
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/ |
Fixes #15926 (comment), fixes #16200