You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
improve: parse google-style attributes in docstrings (marimo-team#3247)
Also, show examples right after summary, then args, attrs, ...
I noticed that some (but not all) of the attributes sections had been
converted to google-style and weren't rendering properly. This change
fixes that.
Copy file name to clipboardExpand all lines: tests/_utils/snapshots/docstring_complex.txt
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2,20 +2,6 @@
2
2
Stack items vertically, in a column.
3
3
Combine with `hstack` to build a grid of items.
4
4
5
-
# Arguments
6
-
| Parameter | Type | Description |
7
-
|-----------|------|-------------|
8
-
| `items` | `Sequence[object]` | A list of items. |
9
-
| `align` | `Literal["start", "end", "center", "stretch"], optional` | Align items horizontally: start, end, center, or stretch. |
10
-
| `justify` | `Literal["start", "center", "end", "space-between", "space-around"]` | Justify items vertically: start, center, end, space-between, or space-around. Defaults to "start". |
11
-
| `gap` | `float, optional` | Gap between items as a float in rem. 1rem is 16px by default. Defaults to 0.5. |
12
-
| `heights` | `Union[Literal["equal"], Sequence[float]], optional` | "equal" to give items equal height; or a list of relative heights with same length as `items`, eg, [1, 2] means the second item is twice as tall as the first; or None for a sensible default. |
13
-
14
-
# Returns
15
-
| Type | Description |
16
-
|------|-------------|
17
-
| `Html` | An Html object. |
18
-
19
5
# Examples
20
6
Build a column of items:
21
7
```python
@@ -32,3 +18,18 @@ mo.vstack(
32
18
]
33
19
)
34
20
```
21
+
22
+
23
+
# Arguments
24
+
| Parameter | Type | Description |
25
+
|-----------|------|-------------|
26
+
| `items` | `Sequence[object]` | A list of items. |
27
+
| `align` | `Literal["start", "end", "center", "stretch"], optional` | Align items horizontally: start, end, center, or stretch. |
28
+
| `justify` | `Literal["start", "center", "end", "space-between", "space-around"]` | Justify items vertically: start, center, end, space-between, or space-around. Defaults to "start". |
29
+
| `gap` | `float, optional` | Gap between items as a float in rem. 1rem is 16px by default. Defaults to 0.5. |
30
+
| `heights` | `Union[Literal["equal"], Sequence[float]], optional` | "equal" to give items equal height; or a list of relative heights with same length as `items`, eg, [1, 2] means the second item is twice as tall as the first; or None for a sensible default. |
0 commit comments