@@ -141,10 +141,6 @@ def as_ctypes(obj: NDArray[np.int16]) -> ct.Array[ct.c_int16]: ...
141
141
def as_ctypes (obj : np .int32 ) -> ct .c_int32 : ...
142
142
@overload
143
143
def as_ctypes (obj : NDArray [np .int32 ]) -> ct .Array [ct .c_int32 ]: ...
144
- @overload # long
145
- def as_ctypes (obj : np .long ) -> ct .c_long : ...
146
- @overload
147
- def as_ctypes (obj : NDArray [np .long ]) -> ct .Array [ct .c_long ]: ...
148
144
@overload # int64 / longlong (which might be an alias for for `long`)
149
145
def as_ctypes (obj : np .int64 ) -> ct .c_int64 : ...
150
146
@overload
@@ -161,10 +157,6 @@ def as_ctypes(obj: NDArray[np.uint16]) -> ct.Array[ct.c_uint16]: ...
161
157
def as_ctypes (obj : np .uint32 ) -> ct .c_uint32 : ...
162
158
@overload
163
159
def as_ctypes (obj : NDArray [np .uint32 ]) -> ct .Array [ct .c_uint32 ]: ...
164
- @overload # ulong
165
- def as_ctypes (obj : np .ulong ) -> ct .c_ulong : ...
166
- @overload
167
- def as_ctypes (obj : NDArray [np .ulong ]) -> ct .Array [ct .c_ulong ]: ...
168
160
@overload # uint64 / ulonglong
169
161
def as_ctypes (obj : np .uint64 ) -> ct .c_uint64 : ...
170
162
@overload
@@ -192,23 +184,23 @@ def as_ctypes_type(dtype: _DTypeLike[np.int16] | type[ct.c_int16 | ct.c_short] |
192
184
@overload
193
185
def as_ctypes_type (dtype : _DTypeLike [np .int32 ] | type [ct .c_int32 | ct .c_int ] | _Int32Codes ) -> type [ct .c_int32 ]: ...
194
186
@overload
195
- def as_ctypes_type (dtype : _DTypeLike [np .long ] | type [ct .c_long ] | _LongCodes ) -> type [ct .c_long ]: ...
196
- @overload
197
- def as_ctypes_type (dtype : _DTypeLike [np .int64 ] | type [ct .c_int64 ] | _Int64Codes ) -> type [ct .c_int64 ]: ...
187
+ def as_ctypes_type (dtype : type [ct .c_long ] | _LongCodes ) -> type [ct .c_long ]: ...
198
188
@overload
199
189
def as_ctypes_type (dtype : type [JustInt | ct .c_ssize_t ] | _IntPCodes ) -> type [ct .c_ssize_t ]: ...
200
190
@overload
191
+ def as_ctypes_type (dtype : _DTypeLike [np .int64 ] | type [ct .c_int64 ] | _Int64Codes ) -> type [ct .c_int64 ]: ...
192
+ @overload
201
193
def as_ctypes_type (dtype : _DTypeLike [np .uint8 ] | type [ct .c_uint8 | ct .c_ubyte ] | _UInt8Codes ) -> type [ct .c_uint8 ]: ...
202
194
@overload
203
195
def as_ctypes_type (dtype : _DTypeLike [np .uint16 ] | type [ct .c_uint16 | ct .c_ushort ] | _UInt16Codes ) -> type [ct .c_uint16 ]: ...
204
196
@overload
205
197
def as_ctypes_type (dtype : _DTypeLike [np .uint32 ] | type [ct .c_uint32 | ct .c_uint ] | _UInt32Codes ) -> type [ct .c_uint32 ]: ...
206
198
@overload
207
- def as_ctypes_type (dtype : _DTypeLike [ np . ulong ] | type [ct .c_ulong ] | _ULongCodes ) -> type [ct .c_ulong ]: ...
199
+ def as_ctypes_type (dtype : type [ct .c_ulong ] | _ULongCodes ) -> type [ct .c_ulong ]: ...
208
200
@overload
209
- def as_ctypes_type (dtype : _DTypeLike [ np . uint64 ] | type [ ct .c_uint64 ] | _UInt64Codes ) -> type [ct .c_uint64 ]: ...
201
+ def as_ctypes_type (dtype : type [ ct . c_void_p | ct .c_size_t ] | _UIntPCodes ) -> type [ct .c_size_t ]: ...
210
202
@overload
211
- def as_ctypes_type (dtype : type [ct .c_size_t ] | _UIntPCodes ) -> type [ct .c_size_t ]: ...
203
+ def as_ctypes_type (dtype : _DTypeLike [ np . uint64 ] | type [ct .c_uint64 ] | _UInt64Codes ) -> type [ct .c_uint64 ]: ...
212
204
@overload
213
205
def as_ctypes_type (dtype : _DTypeLike [np .float32 ] | type [ct .c_float ] | _Float32Codes ) -> type [ct .c_float ]: ...
214
206
@overload
0 commit comments