Skip to content

Commit 237c964

Browse files
committed
don't register arrays
1 parent 1fd2bef commit 237c964

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

pandas/core/arrays/mask/_numpy.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44

55
import numpy as np
66

7-
from pandas.api.extensions import register_extension_dtype, take
7+
from pandas.api.extensions import take
88
from pandas.core.arrays.mask._base import BoolArray, BoolDtype
99

1010

11-
@register_extension_dtype
1211
class NumpyBoolDtype(BoolDtype):
1312

1413
na_value = np.nan

pandas/core/arrays/mask/_pyarrow.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import numpy as np
1212

13-
from pandas.api.extensions import register_extension_dtype, take
13+
from pandas.api.extensions import take
1414
from pandas.api.types import is_scalar
1515
from pandas.core.arrays.mask._base import BoolArray, BoolDtype
1616

@@ -24,7 +24,6 @@
2424
raise
2525

2626

27-
@register_extension_dtype
2827
class ArrowBoolDtype(BoolDtype):
2928

3029
na_value = pa.NULL

pandas/tests/arrays/mask/test_pyarrow_bool.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
pytest.importorskip('pyarrow', minversion="0.10.0")
1111

1212

13-
1413
@pytest.fixture
1514
def dtype():
1615
return ArrowBoolDtype()

0 commit comments

Comments
 (0)