Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Apr 19, 2020
1 parent 3747240 commit 334dc74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rich/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions rich/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ def set_shape(
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)
Expand Down

0 comments on commit 334dc74

Please sign in to comment.