Skip to content

Commit 8fef018

Browse files
authored
TYP: remove mypy ignores from io/formats/printing.py (#48456)
* TYP: remove mypy ignores from io/formats/printing.py * fixup! TYP: remove mypy ignores from io/formats/printing.py
1 parent b6c4e4a commit 8fef018

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

pandas/io/formats/printing.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -491,17 +491,13 @@ def _justify(
491491
max_length = [max(x, y) for x, y in zip(max_length, length)]
492492

493493
# justify each item in each list-like in head and tail using max_length
494-
head = [
494+
head_tuples = [
495495
tuple(x.rjust(max_len) for x, max_len in zip(seq, max_length)) for seq in head
496496
]
497-
tail = [
497+
tail_tuples = [
498498
tuple(x.rjust(max_len) for x, max_len in zip(seq, max_length)) for seq in tail
499499
]
500-
# https://github.com/python/mypy/issues/4975
501-
# error: Incompatible return value type (got "Tuple[List[Sequence[str]],
502-
# List[Sequence[str]]]", expected "Tuple[List[Tuple[str, ...]],
503-
# List[Tuple[str, ...]]]")
504-
return head, tail # type: ignore[return-value]
500+
return head_tuples, tail_tuples
505501

506502

507503
class PrettyDict(Dict[_KT, _VT]):

0 commit comments

Comments
 (0)