File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ from ._dtype import (
49
49
ToDTypeInt16 as ToDTypeInt16 ,
50
50
ToDTypeInt32 as ToDTypeInt32 ,
51
51
ToDTypeInt64 as ToDTypeInt64 ,
52
+ ToDTypeLong as ToDTypeLong ,
52
53
ToDTypeLongDouble as ToDTypeLongDouble ,
53
54
ToDTypeObject as ToDTypeObject ,
54
55
ToDTypeStr as ToDTypeStr ,
@@ -58,6 +59,7 @@ from ._dtype import (
58
59
ToDTypeUInt16 as ToDTypeUInt16 ,
59
60
ToDTypeUInt32 as ToDTypeUInt32 ,
60
61
ToDTypeUInt64 as ToDTypeUInt64 ,
62
+ ToDTypeULong as ToDTypeULong ,
61
63
ToDTypeVoid as ToDTypeVoid ,
62
64
_ToDType as _ToDType ,
63
65
)
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ from numpy._typing._char_codes import (
18
18
_Int32Codes ,
19
19
_Int64Codes ,
20
20
_IntPCodes ,
21
+ _LongCodes ,
21
22
_LongDoubleCodes ,
22
23
_ObjectCodes ,
23
24
_StrCodes ,
@@ -28,6 +29,7 @@ from numpy._typing._char_codes import (
28
29
_UInt32Codes ,
29
30
_UInt64Codes ,
30
31
_UIntPCodes ,
32
+ _ULongCodes ,
31
33
_VoidCodes ,
32
34
)
33
35
from numpy ._typing ._dtype_like import _VoidDTypeLike
@@ -49,6 +51,7 @@ __all__ = [
49
51
"ToDTypeInt16" ,
50
52
"ToDTypeInt32" ,
51
53
"ToDTypeInt64" ,
54
+ "ToDTypeLong" ,
52
55
"ToDTypeLongDouble" ,
53
56
"ToDTypeObject" ,
54
57
"ToDTypeStr" ,
@@ -58,6 +61,7 @@ __all__ = [
58
61
"ToDTypeUInt16" ,
59
62
"ToDTypeUInt32" ,
60
63
"ToDTypeUInt64" ,
64
+ "ToDTypeULong" ,
61
65
"ToDTypeVoid" ,
62
66
"_ToDType" ,
63
67
"_ToDType2" ,
@@ -105,6 +109,8 @@ ToDTypeInt32: TypeAlias = _ToDType2[np.int32, _c_i32] | _Int32Codes
105
109
ToDTypeUInt32 : TypeAlias = _ToDType2 [np .uint32 , _c_u32 ] | _UInt32Codes
106
110
ToDTypeInt64 : TypeAlias = _ToDType2 [np .int64 , _c_i64 | JustInt ] | _Int64Codes | _IntPCodes
107
111
ToDTypeUInt64 : TypeAlias = _ToDType2 [np .uint64 , _c_u64 ] | _UInt64Codes | _UIntPCodes
112
+ ToDTypeULong : TypeAlias = np .dtypes .ULongDType | type [ct .c_ulong ] | _ULongCodes
113
+ ToDTypeLong : TypeAlias = np .dtypes .LongDType | type [ct .c_long ] | _LongCodes
108
114
ToDTypeFloat16 : TypeAlias = _ToDType [np .float16 ] | _Float16Codes
109
115
ToDTypeFloat32 : TypeAlias = _ToDType2 [np .float32 , ct .c_float ] | _Float32Codes
110
116
ToDTypeFloat64 : TypeAlias = _ToDType2 [np .float64 , ct .c_double | JustFloat ] | _Float64Codes
You can’t perform that action at this time.
0 commit comments