Skip to content

Commit b3c74b5

Browse files
committed
Use isinstance instead of type
1 parent 5ef7fb0 commit b3c74b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/internals/concat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ def _is_uniform_join_units(join_units: List[JoinUnit]) -> bool:
443443
# cannot necessarily join
444444
return (
445445
# all blocks need to have the same type
446-
all(type(ju.block) is type(join_units[0].block) for ju in join_units)
446+
all(isinstance(ju.block, join_units[0].block) for ju in join_units)
447447
and # noqa
448448
# no blocks that would get missing values (can lead to type upcasts)
449449
# unless we're an extension dtype.

0 commit comments

Comments
 (0)