Closed
Description
Describe the issue:
Subtracting two np.ndarrays is infered to "return" NoReturn
.
See microsoft/pyright#2696 (comment) for @erictraut's analysis into why pyright infers NoReturn
.
Reproduce the code example:
import numpy as np
reveal_type(np.zeros(1) - np.zeros(1))
Error message:
pyright: Type of "np.zeros(1) - np.zeros(1)" is "NoReturn"
NumPy/Python version information:
1.21.4, 3.9.6