Skip to content

Commit a4c1485

Browse files
committed
STYLE: remove use in pd.api.dtype in json/array.py (pandas-dev#39203)
1 parent 475e442 commit a4c1485

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/extension/json/array.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
import pandas as pd
2727
from pandas.api.extensions import ExtensionArray, ExtensionDtype
28+
from pandas.api.types import is_bool_dtype
2829

2930

3031
class JSONDtype(ExtensionDtype):
@@ -80,7 +81,7 @@ def __getitem__(self, item):
8081
return type(self)(self.data[item])
8182
else:
8283
item = pd.api.indexers.check_array_indexer(self, item)
83-
if pd.api.types.is_bool_dtype(item.dtype):
84+
if is_bool_dtype(item.dtype):
8485
return self._from_sequence([x for x, m in zip(self, item) if m])
8586
# integer
8687
return type(self)([self.data[i] for i in item])

0 commit comments

Comments
 (0)