TYP: np.maximum(np.array(1), np.array(1))
is Any
in 2.2.2 while it wasn't in 2.2.1
#28193
Labels
np.maximum(np.array(1), np.array(1))
is Any
in 2.2.2 while it wasn't in 2.2.1
#28193
Describe the issue:
numpy 2.2.2 reveals a different type for
np.maximum(np.array(1), np.array(1))
than 2.2.1. This looks like a result of #28176. In contrast to #28192, which I think may be intended, I think this is unintended behavior.This happens only with
mypy
, notpyright
.Reproduce the code example:
Error message:
Python and NumPy Versions:
Numpy 2.2.2 vs 2.2.1
Type-checker version and settings:
mypy 1.14.1 (compiled: yes)
Additional typing packages.
No response
The text was updated successfully, but these errors were encountered: