File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5
5
import numpy as np
6
6
import pyarrow as pa
7
7
8
- from pandas ._libs import missing as libmissing
9
8
from pandas ._typing import DtypeObj
10
9
from pandas .util ._decorators import cache_readonly
11
10
@@ -22,7 +21,6 @@ class ArrowDtype(StorageExtensionDtype):
22
21
Modeled after BaseMaskedDtype
23
22
"""
24
23
25
- na_value = libmissing .NA
26
24
_metadata = ("storage" , "pyarrow_dtype" ) # type: ignore[assignment]
27
25
28
26
def __init__ (self , pyarrow_dtype : pa .DataType ) -> None :
Original file line number Diff line number Diff line change @@ -395,7 +395,6 @@ class StorageExtensionDtype(ExtensionDtype):
395
395
"""ExtensionDtype that may be backed by more than one implementation."""
396
396
397
397
name : str
398
- na_value = libmissing .NA
399
398
_metadata = ("storage" ,)
400
399
401
400
def __init__ (self , storage = None ) -> None :
@@ -416,6 +415,10 @@ def __hash__(self) -> int:
416
415
# custom __eq__ so have to override __hash__
417
416
return super ().__hash__ ()
418
417
418
+ @property
419
+ def na_value (self ) -> libmissing .NAType :
420
+ return libmissing .NA
421
+
419
422
420
423
def register_extension_dtype (cls : type_t [ExtensionDtypeT ]) -> type_t [ExtensionDtypeT ]:
421
424
"""
Original file line number Diff line number Diff line change 39
39
" pandas/core/computation/align.py" ,
40
40
" pandas/core/construction.py" ,
41
41
" pandas/core/describe.py" ,
42
- " pandas/core/dtypes/base.py" ,
43
42
" pandas/core/dtypes/cast.py" ,
44
43
" pandas/core/dtypes/common.py" ,
45
44
" pandas/core/dtypes/concat.py" ,
You can’t perform that action at this time.
0 commit comments