Skip to content

Commit de5c604

Browse files
also include pa.OpaqueType
1 parent da7817a commit de5c604

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/core/dtypes/dtypes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2263,7 +2263,9 @@ def type(self):
22632263
elif pa.types.is_null(pa_type):
22642264
# TODO: None? pd.NA? pa.null?
22652265
return type(pa_type)
2266-
elif isinstance(pa_type, pa.ExtensionType):
2266+
elif isinstance(pa_type, pa.ExtensionType) or isinstance(
2267+
pa_type, pa.OpaqueType
2268+
):
22672269
return type(self)(pa_type.storage_type).type
22682270
raise NotImplementedError(pa_type)
22692271

0 commit comments

Comments
 (0)