Describe the issue:
Running
on
import numpy as np
def myfun(x: np.ndarray, b: np.ndarray):
v = b - x
v.copy()
gives
/tmp/dummy.py:6:7 - error: Cannot access member "copy" for type "NoReturn"
Member "copy" is unknown (reportGeneralTypeIssues)
The vector operations +, *, / work fine.
NumPy/Python version information:
1.21.3 3.9.7 (default, Sep 10 2021, 14:59:43)
[GCC 11.2.0]