-
-
Notifications
You must be signed in to change notification settings - 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.
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) ...``` |
Fixes #15926 (comment), fixes #16200