File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff 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
507503class PrettyDict (Dict [_KT , _VT ]):
You can’t perform that action at this time.
0 commit comments