Skip to content

Commit e9637f4

Browse files
committed
Trim some docstrings that don't add value
1 parent c13ea9b commit e9637f4

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

Lib/_pyrepl/reader.py

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,7 @@ def make_default_commands() -> dict[CommandName, CommandClass]:
157157

158158
@dataclass(frozen=True, slots=True)
159159
class RefreshInvalidation:
160-
"""Which parts of the screen need to be recomputed on the next refresh.
161-
162-
Typing a character sets ``buffer_from_pos`` (rebuild from that offset).
163-
Moving the cursor without editing sets ``cursor_only``.
164-
Resizing the terminal sets ``layout`` (reflow all lines).
165-
Opening a completion menu sets ``overlay``.
166-
"""
160+
"""Which parts of the screen need to be recomputed on the next refresh."""
167161

168162
cursor_only: bool = False
169163
buffer_from_pos: int | None = None
@@ -316,12 +310,7 @@ class Reader:
316310
## cached metadata to speed up screen refreshes
317311
@dataclass
318312
class RefreshCache:
319-
"""Previously computed render/layout data for incremental refresh.
320-
321-
Stores the output of the last ``calc_screen`` so that the next
322-
refresh can reuse unchanged rows (e.g. only re-render from the
323-
edited line onward instead of the whole screen).
324-
"""
313+
"""Previously computed render/layout data for incremental refresh."""
325314

326315
render_lines: list[RenderLine] = field(default_factory=list)
327316
layout_rows: list[LayoutRow] = field(default_factory=list)

0 commit comments

Comments
 (0)