Skip to content

Commit 2550cf0

Browse files
committed
docs: various fixes
1 parent 262b3af commit 2550cf0

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

docs/styles/layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ See the [layout](../guide/layout.md) guide for more information.
2323
## Example
2424

2525
Note how the `layout` style affects the arrangement of widgets in the example below.
26-
To learn more about the grid layout, you can see the [layout guide](../guide/layout.md) or the [grid reference](../grid.md).
26+
To learn more about the grid layout, you can see the [layout guide](../guide/layout.md) or the [grid reference](./grid/index.md).
2727

2828
=== "Output"
2929

src/textual/css/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
This module contains the `DOMQuery` class and related objects.s
2+
This module contains the `DOMQuery` class and related objects.
33
44
A DOMQuery is a set of DOM nodes returned by [query][textual.dom.DOMNode.query].
55

src/textual/dom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ def get_component_styles(self, *names: str) -> RenderStyles:
514514
"""Get a "component" styles object (must be defined in COMPONENT_CLASSES classvar).
515515
516516
Args:
517-
name: Name of the component.
517+
names: Names of the components.
518518
519519
Raises:
520520
KeyError: If the component class doesn't exist.
@@ -1537,7 +1537,7 @@ def check_action(self, action: str, parameters: tuple[object, ...]) -> bool | No
15371537
15381538
Args:
15391539
action: The name of an action.
1540-
action_parameters: A tuple of any action parameters.
1540+
parameters: A tuple of any action parameters.
15411541
15421542
Returns:
15431543
`True` if the action is enabled+visible,

src/textual/geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def with_height(self, height: int) -> Size:
233233
"""Get a new Size with just the height changed.
234234
235235
Args:
236-
width: New height.
236+
height: New height.
237237
238238
Returns:
239239
New Size instance.

src/textual/renderables/bar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Bar:
1515
highlight_style: The style of the highlighted range of the bar.
1616
background_style: The style of the non-highlighted range(s) of the bar.
1717
width: The width of the bar, or `None` to fill available width.
18-
gradient. Optional gradient object.
18+
gradient: Optional gradient object.
1919
"""
2020

2121
def __init__(

src/textual/widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ def get_component_rich_style(self, *names: str, partial: bool = False) -> Style:
806806
"""Get a *Rich* style for a component.
807807
808808
Args:
809-
name: Name of component.
809+
names: Names of components.
810810
partial: Return a partial style (not combined with parent).
811811
812812
Returns:

0 commit comments

Comments
 (0)