You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mypy produces for both, ma.ones_like and ma.zeros_like the error: Module has no attribute. The apparent reason is that both are not listed in ma/__init__.pyi. Is this a simple omission? ma/core.pyi includes both, though, so ma.core.ones_like or ma.core.zeros_like work.
test.py:7: error: Module has no attribute "ones_like" [attr-defined]
test.py:8: error: Module has no attribute "zeros_like" [attr-defined]
Found 2 errors in 1 file (checked 1 source file)
Python and NumPy Versions:
2.1.0
3.12.5 (main, Aug 7 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)]
Type-checker version and settings:
mypy 1.11.2 (compiled: yes)
Additional typing packages.
No response
The text was updated successfully, but these errors were encountered:
Describe the issue:
mypy produces for both,
ma.ones_like
andma.zeros_like
theerror: Module has no attribute
. The apparent reason is that both are not listed inma/__init__.pyi
. Is this a simple omission?ma/core.pyi
includes both, though, soma.core.ones_like
orma.core.zeros_like
work.Reproduce the code example:
Error message:
Python and NumPy Versions:
2.1.0
3.12.5 (main, Aug 7 2024, 00:00:00) [GCC 14.2.1 20240801 (Red Hat 14.2.1-1)]
Type-checker version and settings:
mypy 1.11.2 (compiled: yes)
Additional typing packages.
No response
The text was updated successfully, but these errors were encountered: