Skip to content

Commit 334dc74

Browse files
committed
typing
1 parent 3747240 commit 334dc74

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

rich/panel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Panel:
3333
def __init__(
3434
self,
3535
renderable: RenderableType,
36-
box=box.ROUNDED,
36+
box: box.Box = box.ROUNDED,
3737
expand: bool = True,
3838
style: Union[str, Style] = "none",
3939
width: Optional[int] = None,

rich/segment.py

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ def set_shape(
182182
pad_line = [Segment(" " * width, style)]
183183
append = new_lines.append
184184
adjust_line_length = cls.adjust_line_length
185+
line: Optional[List[Segment]]
185186
for line, _ in zip_longest(lines, range(height)):
186187
if line is None:
187188
append(pad_line)

0 commit comments

Comments
 (0)