-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
Annotations don't import np.lib.* #18601
Copy link
Copy link
Closed
Labels
Description
When one imports numpy, the various np.lib.* modules are automatically imported. However, the type annotations don't reflect this.
Reproducing code example:
import numpy as np
np.lib.stride_tricks.DummyArray```
### Error message:
When run with mypy 0.790:st.py:2: error: Module has no attribute "stride_tricks"
Found 1 error in 1 file (checked 1 source file)
### NumPy/Python version information:
1.20.1 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0]
Reactions are currently unavailable