From 334dc742fbed621ccf21a6d8a76e71f74e51fcf1 Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 19 Apr 2020 15:44:36 +0100 Subject: [PATCH] typing --- rich/panel.py | 2 +- rich/segment.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rich/panel.py b/rich/panel.py index da3936b3..6ae9d219 100644 --- a/rich/panel.py +++ b/rich/panel.py @@ -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, diff --git a/rich/segment.py b/rich/segment.py index 0a687f44..acc4e0f9 100644 --- a/rich/segment.py +++ b/rich/segment.py @@ -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)