Skip to content

Commit c84a9c6

Browse files
committed
Lint
1 parent 5bc2ba5 commit c84a9c6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/arrays/interval.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,10 @@ def astype(self, dtype, copy: bool = True, errors: str = "raise"):
701701
new_left = self.left
702702
new_right = self.right
703703
else:
704-
msg = f"Cannot convert {self.dtype} to {dtype}; subtypes are incompatible"
704+
msg = (
705+
f"Cannot convert {self.dtype} to {dtype}; "
706+
"subtypes are incompatible"
707+
)
705708
raise TypeError(msg) from err
706709
return self._shallow_copy(new_left, new_right)
707710
elif is_categorical_dtype(dtype):

0 commit comments

Comments
 (0)