We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62f307f commit ee74149Copy full SHA for ee74149
src/numpydantic/meta.py
@@ -63,4 +63,8 @@ def update_ndarray_stub() -> None:
63
with open(pyi_file, "w") as pyi:
64
pyi.write(stub_string)
65
except Exception as e: # pragma: no cover
66
- warn(f"ndarray.pyi stub file could not be generated: {e}", stacklevel=1)
+ warn(
67
+ f"ndarray.pyi stub file could not be generated: {e}",
68
+ category=ImportWarning,
69
+ stacklevel=1,
70
+ )
0 commit comments