|
8 | 8 |
|
9 | 9 | import numpy as np
|
10 | 10 |
|
| 11 | +from pandas.util._decorators import set_module |
| 12 | + |
11 | 13 | from pandas.core.dtypes.base import register_extension_dtype
|
12 | 14 | from pandas.core.dtypes.common import is_integer_dtype
|
13 | 15 |
|
@@ -218,55 +220,63 @@ class IntegerArray(NumericArray):
|
218 | 220 |
|
219 | 221 |
|
220 | 222 | @register_extension_dtype
|
| 223 | +@set_module("pandas") |
221 | 224 | class Int8Dtype(IntegerDtype):
|
222 | 225 | type = np.int8
|
223 | 226 | name: ClassVar[str] = "Int8"
|
224 | 227 | __doc__ = _dtype_docstring.format(dtype="int8")
|
225 | 228 |
|
226 | 229 |
|
227 | 230 | @register_extension_dtype
|
| 231 | +@set_module("pandas") |
228 | 232 | class Int16Dtype(IntegerDtype):
|
229 | 233 | type = np.int16
|
230 | 234 | name: ClassVar[str] = "Int16"
|
231 | 235 | __doc__ = _dtype_docstring.format(dtype="int16")
|
232 | 236 |
|
233 | 237 |
|
234 | 238 | @register_extension_dtype
|
| 239 | +@set_module("pandas") |
235 | 240 | class Int32Dtype(IntegerDtype):
|
236 | 241 | type = np.int32
|
237 | 242 | name: ClassVar[str] = "Int32"
|
238 | 243 | __doc__ = _dtype_docstring.format(dtype="int32")
|
239 | 244 |
|
240 | 245 |
|
241 | 246 | @register_extension_dtype
|
| 247 | +@set_module("pandas") |
242 | 248 | class Int64Dtype(IntegerDtype):
|
243 | 249 | type = np.int64
|
244 | 250 | name: ClassVar[str] = "Int64"
|
245 | 251 | __doc__ = _dtype_docstring.format(dtype="int64")
|
246 | 252 |
|
247 | 253 |
|
248 | 254 | @register_extension_dtype
|
| 255 | +@set_module("pandas") |
249 | 256 | class UInt8Dtype(IntegerDtype):
|
250 | 257 | type = np.uint8
|
251 | 258 | name: ClassVar[str] = "UInt8"
|
252 | 259 | __doc__ = _dtype_docstring.format(dtype="uint8")
|
253 | 260 |
|
254 | 261 |
|
255 | 262 | @register_extension_dtype
|
| 263 | +@set_module("pandas") |
256 | 264 | class UInt16Dtype(IntegerDtype):
|
257 | 265 | type = np.uint16
|
258 | 266 | name: ClassVar[str] = "UInt16"
|
259 | 267 | __doc__ = _dtype_docstring.format(dtype="uint16")
|
260 | 268 |
|
261 | 269 |
|
262 | 270 | @register_extension_dtype
|
| 271 | +@set_module("pandas") |
263 | 272 | class UInt32Dtype(IntegerDtype):
|
264 | 273 | type = np.uint32
|
265 | 274 | name: ClassVar[str] = "UInt32"
|
266 | 275 | __doc__ = _dtype_docstring.format(dtype="uint32")
|
267 | 276 |
|
268 | 277 |
|
269 | 278 | @register_extension_dtype
|
| 279 | +@set_module("pandas") |
270 | 280 | class UInt64Dtype(IntegerDtype):
|
271 | 281 | type = np.uint64
|
272 | 282 | name: ClassVar[str] = "UInt64"
|
|
0 commit comments