We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
dtype
Decimal
Fraction
1 parent 487182a commit 5c78235Copy full SHA for 5c78235
‎src/numpy-stubs/@test/static/accept/dtype.pyi
@@ -1,6 +1,4 @@
1
import ctypes as ct
2
-from decimal import Decimal
3
-from fractions import Fraction
4
from typing_extensions import LiteralString, assert_type
5
6
import numpy as np
@@ -56,9 +54,6 @@ assert_type(np.dtype(np.number), np.dtype[np.number])
56
54
# NOTE: `character` and `flexible` always fail on mypy because of some mypy bug
57
55
assert_type(np.dtype(np.generic), np.dtype[np.generic])
58
59
-assert_type(np.dtype(Decimal), np.dtype[np.object_])
60
-assert_type(np.dtype(Fraction), np.dtype[np.object_])
61
-
62
# char-codes
63
assert_type(np.dtype("u1"), np.dtype[np.uint8])
64
assert_type(np.dtype("int_"), np.dtype[np.intp])
0 commit comments