Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/textual/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(
disabled: Whether the widget is disabled or not.
can_focus: Can this container be focused?
can_focus_children: Can this container's children be focused?
can_maximized: Allow this container to maximize? `None` to use default logic.,
can_maximize: Allow this container to maximize? `None` to use default logic.,
"""

super().__init__(
Expand Down
5 changes: 3 additions & 2 deletions src/textual/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,9 @@ def assemble(
```

Args:
*parts: Parts to join to gether. A *part* may be a simple string, another Content
instance, or tuple containing text and a style.
*parts: Parts to join to gether.
A *part* may be a simple string, another Content
instance, or tuple containing text and a style.
end: Optional end to the Content.
strip_control_codes: Strip control codes that may break output.
"""
Expand Down
2 changes: 1 addition & 1 deletion src/textual/document/_syntax_aware_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def get_line(self, index: int) -> str:
"""Return the string representing the line, not including new line characters.

Args:
line_index: The index of the line.
index: The index of the line.

Returns:
The string representing the line.
Expand Down
2 changes: 1 addition & 1 deletion src/textual/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def translate(

Args:
placements: List of placements.
offset: Offset to add to placements.
translate_offset: Offset to add to placements.

Returns:
Placements with adjusted region, or same instance if offset is null.
Expand Down
2 changes: 1 addition & 1 deletion src/textual/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ def arrange(self, size: Size, _optimal: bool = False) -> DockArrangeResult:

Args:
size: Size of container.
optimal: Ignored on screen.
_optimal: Ignored on screen.

Returns:
Widget locations.
Expand Down
2 changes: 1 addition & 1 deletion src/textual/walk.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def walk_selectable_widgets(
Args:
root: The root note (starting point).
bounds: A Shape object that defines the selection bounds.
bounded: Container widgets that require a bounds check.
containers: Container widgets that require a bounds check.

Returns:
An iterable of DOMNodes.
Expand Down