| 
1 | 1 | from __future__ import annotations  | 
2 | 2 | 
 
  | 
 | 3 | +from typing import ClassVar  | 
 | 4 | + | 
3 | 5 | import numpy as np  | 
4 | 6 | 
 
  | 
5 | 7 | from pandas.core.dtypes.base import register_extension_dtype  | 
@@ -205,56 +207,56 @@ class IntegerArray(NumericArray):  | 
205 | 207 | @register_extension_dtype  | 
206 | 208 | class Int8Dtype(IntegerDtype):  | 
207 | 209 |  type = np.int8  | 
208 |  | - name = "Int8"  | 
 | 210 | + name: ClassVar[str] = "Int8"  | 
209 | 211 |  __doc__ = _dtype_docstring.format(dtype="int8")  | 
210 | 212 | 
 
  | 
211 | 213 | 
 
  | 
212 | 214 | @register_extension_dtype  | 
213 | 215 | class Int16Dtype(IntegerDtype):  | 
214 | 216 |  type = np.int16  | 
215 |  | - name = "Int16"  | 
 | 217 | + name: ClassVar[str] = "Int16"  | 
216 | 218 |  __doc__ = _dtype_docstring.format(dtype="int16")  | 
217 | 219 | 
 
  | 
218 | 220 | 
 
  | 
219 | 221 | @register_extension_dtype  | 
220 | 222 | class Int32Dtype(IntegerDtype):  | 
221 | 223 |  type = np.int32  | 
222 |  | - name = "Int32"  | 
 | 224 | + name: ClassVar[str] = "Int32"  | 
223 | 225 |  __doc__ = _dtype_docstring.format(dtype="int32")  | 
224 | 226 | 
 
  | 
225 | 227 | 
 
  | 
226 | 228 | @register_extension_dtype  | 
227 | 229 | class Int64Dtype(IntegerDtype):  | 
228 | 230 |  type = np.int64  | 
229 |  | - name = "Int64"  | 
 | 231 | + name: ClassVar[str] = "Int64"  | 
230 | 232 |  __doc__ = _dtype_docstring.format(dtype="int64")  | 
231 | 233 | 
 
  | 
232 | 234 | 
 
  | 
233 | 235 | @register_extension_dtype  | 
234 | 236 | class UInt8Dtype(IntegerDtype):  | 
235 | 237 |  type = np.uint8  | 
236 |  | - name = "UInt8"  | 
 | 238 | + name: ClassVar[str] = "UInt8"  | 
237 | 239 |  __doc__ = _dtype_docstring.format(dtype="uint8")  | 
238 | 240 | 
 
  | 
239 | 241 | 
 
  | 
240 | 242 | @register_extension_dtype  | 
241 | 243 | class UInt16Dtype(IntegerDtype):  | 
242 | 244 |  type = np.uint16  | 
243 |  | - name = "UInt16"  | 
 | 245 | + name: ClassVar[str] = "UInt16"  | 
244 | 246 |  __doc__ = _dtype_docstring.format(dtype="uint16")  | 
245 | 247 | 
 
  | 
246 | 248 | 
 
  | 
247 | 249 | @register_extension_dtype  | 
248 | 250 | class UInt32Dtype(IntegerDtype):  | 
249 | 251 |  type = np.uint32  | 
250 |  | - name = "UInt32"  | 
 | 252 | + name: ClassVar[str] = "UInt32"  | 
251 | 253 |  __doc__ = _dtype_docstring.format(dtype="uint32")  | 
252 | 254 | 
 
  | 
253 | 255 | 
 
  | 
254 | 256 | @register_extension_dtype  | 
255 | 257 | class UInt64Dtype(IntegerDtype):  | 
256 | 258 |  type = np.uint64  | 
257 |  | - name = "UInt64"  | 
 | 259 | + name: ClassVar[str] = "UInt64"  | 
258 | 260 |  __doc__ = _dtype_docstring.format(dtype="uint64")  | 
259 | 261 | 
 
  | 
260 | 262 | 
 
  | 
 | 
0 commit comments