File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ def _array_payload_to_array(payload: "PicklableArrayPayload") -> "pyarrow.Array"
254254 assert len (children ) == 3 , len (children )
255255 offsets , keys , items = children
256256 return pa .MapArray .from_arrays (offsets , keys , items )
257- elif isinstance (payload .type , ( pa .ExtensionType , pa . BaseExtensionType ) ):
257+ elif isinstance (payload .type , pa .BaseExtensionType ):
258258 assert len (children ) == 1 , len (children )
259259 storage = children [0 ]
260260 return payload .type .wrap_array (storage )
@@ -305,7 +305,7 @@ def _array_to_array_payload(a: "pyarrow.Array") -> "PicklableArrayPayload":
305305 return _dictionary_array_to_array_payload (a )
306306 elif pa .types .is_map (a .type ):
307307 return _map_array_to_array_payload (a )
308- elif isinstance (a .type , ( pa .ExtensionType , pa . BaseExtensionType ) ):
308+ elif isinstance (a .type , pa .BaseExtensionType ):
309309 return _extension_array_to_array_payload (a )
310310 else :
311311 raise ValueError ("Unhandled Arrow array type:" , a .type )
You can’t perform that action at this time.
0 commit comments