docstrings

This commit is contained in:
Will McGugan
2023-01-24 16:04:33 +01:00
parent 1cba4006b9
commit d10f0cbc79
2 changed files with 18 additions and 6 deletions

View File

@@ -1095,8 +1095,12 @@ class App(Generic[ReturnType], DOMNode):
Args:
*widgets: The widget(s) to mount.
before: Optional location to mount before.
after: Optional location to mount after.
before: Optional location to mount before. An `int` is the index
of the child to mount before, a `str` is a `query_one` query to
find the widget to mount before.
after: Optional location to mount after. An `int` is the index
of the child to mount after, a `str` is a `query_one` query to
find the widget to mount after.
Returns:
An awaitable object that waits for widgets to be mounted.
@@ -1121,8 +1125,12 @@ class App(Generic[ReturnType], DOMNode):
Args:
widgets: An iterable of widgets.
before: Optional location to mount before.
after: Optional location to mount after.
before: Optional location to mount before. An `int` is the index
of the child to mount before, a `str` is a `query_one` query to
find the widget to mount before.
after: Optional location to mount after. An `int` is the index
of the child to mount after, a `str` is a `query_one` query to
find the widget to mount after.
Returns:
An awaitable object that waits for widgets to be mounted.

View File

@@ -629,8 +629,12 @@ class Widget(DOMNode):
Args:
widgets: An iterable of widgets.
before: Optional location to mount before.
after: Optional location to mount after.
before: Optional location to mount before. An `int` is the index
of the child to mount before, a `str` is a `query_one` query to
find the widget to mount before.
after: Optional location to mount after. An `int` is the index
of the child to mount after, a `str` is a `query_one` query to
find the widget to mount after.
Returns:
An awaitable object that waits for widgets to be mounted.