mirror of https://github.com/Textualize/rich.git
typing
This commit is contained in:
parent
3747240bfe
commit
334dc742fb
|
@ -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,
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue