Skip to content

Commit 61b87cb

Browse files
committed
Allow exactly checking type
- Ignore flake8 complaints
1 parent 5ef7fb0 commit 61b87cb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/internals/concat.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ 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(
447+
type(ju.block) is type(join_units[0].block) # noqa: E721
448+
for ju in join_units
449+
)
447450
and # noqa
448451
# no blocks that would get missing values (can lead to type upcasts)
449452
# unless we're an extension dtype.

0 commit comments

Comments
 (0)