Upload hf_env/lib/python3.14/site-packages/numpy/typing/tests/data/pass/numerictypes.py with huggingface_hub
Browse files
hf_env/lib/python3.14/site-packages/numpy/typing/tests/data/pass/numerictypes.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import numpy as np
|
| 2 |
+
|
| 3 |
+
np.isdtype(np.float64, (np.int64, np.float64))
|
| 4 |
+
np.isdtype(np.int64, "signed integer")
|
| 5 |
+
|
| 6 |
+
np.issubdtype("S1", np.bytes_)
|
| 7 |
+
np.issubdtype(np.float64, np.float32)
|
| 8 |
+
|
| 9 |
+
np.ScalarType
|
| 10 |
+
np.ScalarType[0]
|
| 11 |
+
np.ScalarType[3]
|
| 12 |
+
np.ScalarType[8]
|
| 13 |
+
np.ScalarType[10]
|
| 14 |
+
|
| 15 |
+
np.typecodes["Character"]
|
| 16 |
+
np.typecodes["Complex"]
|
| 17 |
+
np.typecodes["All"]
|