Skip to content

Commit 16645fe

Browse files
authored
CI fixup pylint ci failure (#49537)
fixup pylint ci failure Co-authored-by: MarcoGorelli <>
1 parent 081c06b commit 16645fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/dtypes/concat.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,7 @@ def _maybe_unwrap(x):
284284
if all(c.ordered for c in to_union):
285285
msg = "to union ordered Categoricals, all categories must be the same"
286286
raise TypeError(msg)
287-
else:
288-
raise TypeError("Categorical.ordered must be the same")
287+
raise TypeError("Categorical.ordered must be the same")
289288

290289
if ignore_order:
291290
ordered = False

0 commit comments

Comments
 (0)