Skip to content

Commit 8e26695

Browse files
PERF: isinstance ABCIndexClass and ABCExtensionArray (pandas-dev#34607)
1 parent ef8567d commit 8e26695

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/dtypes/generic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _check(cls, inst) -> bool:
3838
ABCIndexClass = create_pandas_abc_type(
3939
"ABCIndexClass",
4040
"_typ",
41-
(
41+
{
4242
"index",
4343
"int64index",
4444
"rangeindex",
@@ -50,7 +50,7 @@ def _check(cls, inst) -> bool:
5050
"periodindex",
5151
"categoricalindex",
5252
"intervalindex",
53-
),
53+
},
5454
)
5555

5656
ABCSeries = create_pandas_abc_type("ABCSeries", "_typ", ("series",))
@@ -66,6 +66,6 @@ def _check(cls, inst) -> bool:
6666
"ABCExtensionArray",
6767
"_typ",
6868
# Note: IntervalArray and SparseArray are included bc they have _typ="extension"
69-
("extension", "categorical", "periodarray", "datetimearray", "timedeltaarray"),
69+
{"extension", "categorical", "periodarray", "datetimearray", "timedeltaarray"},
7070
)
7171
ABCPandasArray = create_pandas_abc_type("ABCPandasArray", "_typ", ("npy_extension",))

0 commit comments

Comments
 (0)