File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 55import numpy as np
66import pyarrow as pa
77
8- from pandas ._libs import missing as libmissing
98from pandas ._typing import DtypeObj
109from pandas .util ._decorators import cache_readonly
1110
@@ -22,7 +21,6 @@ class ArrowDtype(StorageExtensionDtype):
2221 Modeled after BaseMaskedDtype
2322 """
2423
25- na_value = libmissing .NA
2624 _metadata = ("storage" , "pyarrow_dtype" ) # type: ignore[assignment]
2725
2826 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):
395395 """ExtensionDtype that may be backed by more than one implementation."""
396396
397397 name : str
398- na_value = libmissing .NA
399398 _metadata = ("storage" ,)
400399
401400 def __init__ (self , storage = None ) -> None :
@@ -416,6 +415,10 @@ def __hash__(self) -> int:
416415 # custom __eq__ so have to override __hash__
417416 return super ().__hash__ ()
418417
418+ @property
419+ def na_value (self ) -> libmissing .NAType :
420+ return libmissing .NA
421+
419422
420423def register_extension_dtype (cls : type_t [ExtensionDtypeT ]) -> type_t [ExtensionDtypeT ]:
421424 """
Original file line number Diff line number Diff line change 3939 " pandas/core/computation/align.py" ,
4040 " pandas/core/construction.py" ,
4141 " pandas/core/describe.py" ,
42- " pandas/core/dtypes/base.py" ,
4342 " pandas/core/dtypes/cast.py" ,
4443 " pandas/core/dtypes/common.py" ,
4544 " pandas/core/dtypes/concat.py" ,
You can’t perform that action at this time.
0 commit comments