Skip to content

Commit c0427e6

Browse files
committed
STYLE: Fix E501 line too long in assert_index_equal error message
1 parent 085caa1 commit c0427e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/_testing/asserters.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,9 @@ def _check_types(left, right, obj: str = "Index") -> None:
325325
try:
326326
mismatch = left._values != right._values
327327
except TypeError as e:
328-
raise AssertionError(f"{obj} cannot be compared due to incompatible categorical types.\n{e}") from e
328+
raise AssertionError(
329+
f"{obj} cannot be compared due to incompatible categorical types.\n{e}"
330+
) from e
329331

330332
if not isinstance(mismatch, np.ndarray):
331333
mismatch = cast("ExtensionArray", mismatch).fillna(True)

0 commit comments

Comments
 (0)