diff --git a/docs/styles/layout.md b/docs/styles/layout.md index 590ea3ec5d..4e1a80e3bb 100644 --- a/docs/styles/layout.md +++ b/docs/styles/layout.md @@ -23,7 +23,7 @@ See the [layout](../guide/layout.md) guide for more information. ## Example Note how the `layout` style affects the arrangement of widgets in the example below. -To learn more about the grid layout, you can see the [layout guide](../guide/layout.md) or the [grid reference](../grid.md). +To learn more about the grid layout, you can see the [layout guide](../guide/layout.md) or the [grid reference](./grid/index.md). === "Output" diff --git a/src/textual/css/query.py b/src/textual/css/query.py index 23233f8d2c..60be9aa3a9 100644 --- a/src/textual/css/query.py +++ b/src/textual/css/query.py @@ -1,5 +1,5 @@ """ -This module contains the `DOMQuery` class and related objects.s +This module contains the `DOMQuery` class and related objects. A DOMQuery is a set of DOM nodes returned by [query][textual.dom.DOMNode.query]. diff --git a/src/textual/dom.py b/src/textual/dom.py index 656a005b3d..55ce52afea 100644 --- a/src/textual/dom.py +++ b/src/textual/dom.py @@ -514,7 +514,7 @@ def get_component_styles(self, *names: str) -> RenderStyles: """Get a "component" styles object (must be defined in COMPONENT_CLASSES classvar). Args: - name: Name of the component. + names: Names of the components. Raises: KeyError: If the component class doesn't exist. @@ -1537,7 +1537,7 @@ def check_action(self, action: str, parameters: tuple[object, ...]) -> bool | No Args: action: The name of an action. - action_parameters: A tuple of any action parameters. + parameters: A tuple of any action parameters. Returns: `True` if the action is enabled+visible, diff --git a/src/textual/geometry.py b/src/textual/geometry.py index 8b246c5592..f8da532ba6 100644 --- a/src/textual/geometry.py +++ b/src/textual/geometry.py @@ -233,7 +233,7 @@ def with_height(self, height: int) -> Size: """Get a new Size with just the height changed. Args: - width: New height. + height: New height. Returns: New Size instance. diff --git a/src/textual/renderables/bar.py b/src/textual/renderables/bar.py index 1dba89b77b..2fa31550fc 100644 --- a/src/textual/renderables/bar.py +++ b/src/textual/renderables/bar.py @@ -15,7 +15,7 @@ class Bar: highlight_style: The style of the highlighted range of the bar. background_style: The style of the non-highlighted range(s) of the bar. width: The width of the bar, or `None` to fill available width. - gradient. Optional gradient object. + gradient: Optional gradient object. """ def __init__( diff --git a/src/textual/widget.py b/src/textual/widget.py index 687a97e7ef..cd521a663c 100644 --- a/src/textual/widget.py +++ b/src/textual/widget.py @@ -806,7 +806,7 @@ def get_component_rich_style(self, *names: str, partial: bool = False) -> Style: """Get a *Rich* style for a component. Args: - name: Name of component. + names: Names of components. partial: Return a partial style (not combined with parent). Returns: