File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -491,17 +491,13 @@ def _justify(
491
491
max_length = [max (x , y ) for x , y in zip (max_length , length )]
492
492
493
493
# justify each item in each list-like in head and tail using max_length
494
- head = [
494
+ head_tuples = [
495
495
tuple (x .rjust (max_len ) for x , max_len in zip (seq , max_length )) for seq in head
496
496
]
497
- tail = [
497
+ tail_tuples = [
498
498
tuple (x .rjust (max_len ) for x , max_len in zip (seq , max_length )) for seq in tail
499
499
]
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
505
501
506
502
507
503
class PrettyDict (Dict [_KT , _VT ]):
You can’t perform that action at this time.
0 commit comments