This commit is contained in:
Will McGugan 2020-04-19 15:44:36 +01:00
parent 3747240bfe
commit 334dc742fb
2 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Panel:
def __init__(
self,
renderable: RenderableType,
box=box.ROUNDED,
box: box.Box = box.ROUNDED,
expand: bool = True,
style: Union[str, Style] = "none",
width: Optional[int] = None,

View File

@ -182,6 +182,7 @@ class Segment(NamedTuple):
pad_line = [Segment(" " * width, style)]
append = new_lines.append
adjust_line_length = cls.adjust_line_length
line: Optional[List[Segment]]
for line, _ in zip_longest(lines, range(height)):
if line is None:
append(pad_line)