Skip to content

Commit c13ea9b

Browse files
committed
Repair ScreenOverlay docstring
1 parent df102d6 commit c13ea9b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Lib/_pyrepl/render.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,12 @@ class ScreenOverlay:
157157
If *insert* is True, lines are spliced in (shifting content down);
158158
if False (default), lines replace existing content at *y*.
159159
160+
Overlays are used to display tab completion menus and status messages.
160161
For example, a tab-completion menu inserted below the input::
161162
162163
>>> os.path.j ← line 0 (base content)
163-
join ← ScreenOverlay(y=1, insert=True)
164-
junction ← (pushes remaining lines down)
164+
join ← ScreenOverlay(y=1, insert=True)
165+
junction ← (pushes remaining lines down)
165166
... ← line 1 (shifted down by 2)
166167
"""
167168
y: int

0 commit comments

Comments
 (0)