Skip to content

Commit 743b22c

Browse files
committed
Deployed e31887f with MkDocs version: 1.6.1
1 parent 9b5e79b commit 743b22c

File tree

13 files changed

+94
-62
lines changed

13 files changed

+94
-62
lines changed

changelog/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

credits/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

insiders/changelog/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

insiders/goals.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,6 @@ goals:
4848
- name: "Filtering method: `public`"
4949
ref: /usage/configuration/members/#option-filters-public
5050
since: 2025/03/20
51+
- name: "Ordering method: `__all__`"
52+
ref: /usage/configuration/members/#option-members_order
53+
since: 2025/03/24

insiders/index.html

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

llms-full.txt

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,16 @@ Attributes:
102102
## Order
103103

104104
```python
105-
Order = Literal['alphabetical', 'source']
105+
Order = Literal['__all__', 'alphabetical', 'source']
106106

107107
```
108108

109109
Ordering methods.
110110

111+
- `__all__`: order members according to `__all__` module attributes, if declared;
112+
- `alphabetical`: order members alphabetically;
113+
- `source`: order members as they appear in the source file.
114+
111115
## Tree
112116

113117
```python
@@ -1333,7 +1337,7 @@ PythonInputOptions(
13331337
inherited_members: bool | list[str] = False,
13341338
line_length: int = 60,
13351339
members: list[str] | bool | None = None,
1336-
members_order: Literal["alphabetical", "source"] = "alphabetical",
1340+
members_order: Order | list[Order] = "alphabetical",
13371341
merge_init_into_class: bool = False,
13381342
modernize_annotations: bool = False,
13391343
parameter_headings: bool = False,
@@ -1406,7 +1410,7 @@ Attributes:
14061410
- **`inherited_members`** (`bool | list[str]`) – A boolean, or an explicit list of inherited members to render.
14071411
- **`line_length`** (`int`) – Maximum line length when formatting code/signatures.
14081412
- **`members`** (`list[str] | bool | None`) – A boolean, or an explicit list of members to render.
1409-
- **`members_order`** (`Literal['alphabetical', 'source']`) – The members ordering to use.
1413+
- **`members_order`** (`Order | list[Order]`) – The members ordering to use.
14101414
- **`merge_init_into_class`** (`bool`) – Whether to merge the __init__ method into the class' signature and docstring.
14111415
- **`modernize_annotations`** (`bool`) – Whether to modernize annotations, for example Optional[str] into str | None.
14121416
- **`parameter_headings`** (`bool`) – Whether to render headings for parameters (therefore showing parameters in the ToC).
@@ -1627,15 +1631,18 @@ If true, select all members without further filtering. If false or empty list, d
16271631
### members_order
16281632

16291633
```python
1630-
members_order: Literal['alphabetical', 'source'] = 'alphabetical'
1634+
members_order: Order | list[Order] = 'alphabetical'
16311635

16321636
```
16331637

16341638
The members ordering to use.
16351639

1636-
- `alphabetical`: order by the members names,
1640+
- `__all__`: order members according to `__all__` module attributes, if declared;
1641+
- `alphabetical`: order members alphabetically;
16371642
- `source`: order members as they appear in the source file.
16381643

1644+
Since `__all__` is a module-only attribute, it can't be used to sort class members, therefore the `members_order` option accepts a list of ordering methods, indicating ordering preferences.
1645+
16391646
### merge_init_into_class
16401647

16411648
```python
@@ -2061,7 +2068,7 @@ PythonOptions(
20612068
inherited_members: bool | list[str] = False,
20622069
line_length: int = 60,
20632070
members: list[str] | bool | None = None,
2064-
members_order: Literal["alphabetical", "source"] = "alphabetical",
2071+
members_order: Order | list[Order] = "alphabetical",
20652072
merge_init_into_class: bool = False,
20662073
modernize_annotations: bool = False,
20672074
parameter_headings: bool = False,
@@ -2149,7 +2156,7 @@ Attributes:
21492156
- **`inherited_members`** (`bool | list[str]`) – A boolean, or an explicit list of inherited members to render.
21502157
- **`line_length`** (`int`) – Maximum line length when formatting code/signatures.
21512158
- **`members`** (`list[str] | bool | None`) – A boolean, or an explicit list of members to render.
2152-
- **`members_order`** (`Literal['alphabetical', 'source']`) – The members ordering to use.
2159+
- **`members_order`** (`Order | list[Order]`) – The members ordering to use.
21532160
- **`merge_init_into_class`** (`bool`) – Whether to merge the __init__ method into the class' signature and docstring.
21542161
- **`modernize_annotations`** (`bool`) – Whether to modernize annotations, for example Optional[str] into str | None.
21552162
- **`parameter_headings`** (`bool`) – Whether to render headings for parameters (therefore showing parameters in the ToC).
@@ -2364,15 +2371,18 @@ If true, select all members without further filtering. If false or empty list, d
23642371
### members_order
23652372

23662373
```python
2367-
members_order: Literal['alphabetical', 'source'] = 'alphabetical'
2374+
members_order: Order | list[Order] = 'alphabetical'
23682375

23692376
```
23702377

23712378
The members ordering to use.
23722379

2373-
- `alphabetical`: order by the members names,
2380+
- `__all__`: order members according to `__all__` module attributes, if declared;
2381+
- `alphabetical`: order members alphabetically;
23742382
- `source`: order members as they appear in the source file.
23752383

2384+
Since `__all__` is a module-only attribute, it can't be used to sort class members, therefore the `members_order` option accepts a list of ordering methods, indicating ordering preferences.
2385+
23762386
### merge_init_into_class
23772387

23782388
```python
@@ -3183,7 +3193,7 @@ Returns:
31833193
```python
31843194
do_order_members(
31853195
members: Sequence[Object | Alias],
3186-
order: Order,
3196+
order: Order | list[Order],
31873197
members_list: bool | list[str] | None,
31883198
) -> Sequence[Object | Alias]
31893199

@@ -3199,7 +3209,7 @@ Parameters:
31993209

32003210
- ### **`order`**
32013211

3202-
(`Order`) – The ordering method.
3212+
(`Order | list[Order]`) – The ordering method.
32033213

32043214
- ### **`members_list`**
32053215

reference/api/index.html

Lines changed: 12 additions & 12 deletions
Large diffs are not rendered by default.

schema.json

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -469,15 +469,31 @@
469469
"title": "members"
470470
},
471471
"members_order": {
472-
"default": "alphabetical",
473-
"description": "The members ordering to use.\n\n- `alphabetical`: order by the members names,\n- `source`: order members as they appear in the source file.",
474-
"enum": [
475-
"alphabetical",
476-
"source"
472+
"anyOf": [
473+
{
474+
"enum": [
475+
"__all__",
476+
"alphabetical",
477+
"source"
478+
],
479+
"type": "string"
480+
},
481+
{
482+
"items": {
483+
"enum": [
484+
"__all__",
485+
"alphabetical",
486+
"source"
487+
],
488+
"type": "string"
489+
},
490+
"type": "array"
491+
}
477492
],
478-
"markdownDescription": "[DOCUMENTATION](https://mkdocstrings.github.io/python/usage/configuration/members/#members_order)\n\nThe members ordering to use.\n\n- `alphabetical`: order by the members names,\n- `source`: order members as they appear in the source file.",
479-
"title": "members_order",
480-
"type": "string"
493+
"default": "alphabetical",
494+
"description": "The members ordering to use.\n\n- `__all__`: order members according to `__all__` module attributes, if declared;\n- `alphabetical`: order members alphabetically;\n- `source`: order members as they appear in the source file.\n\nSince `__all__` is a module-only attribute, it can't be used to sort class members,\ntherefore the `members_order` option accepts a list of ordering methods,\nindicating ordering preferences.",
495+
"markdownDescription": "[DOCUMENTATION](https://mkdocstrings.github.io/python/usage/configuration/members/#members_order)\n\nThe members ordering to use.\n\n- `__all__`: order members according to `__all__` module attributes, if declared;\n- `alphabetical`: order members alphabetically;\n- `source`: order members as they appear in the source file.\n\nSince `__all__` is a module-only attribute, it can't be used to sort class members,\ntherefore the `members_order` option accepts a list of ordering methods,\nindicating ordering preferences.",
496+
"title": "members_order"
481497
},
482498
"merge_init_into_class": {
483499
"default": false,

search/search_index.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

sitemap.xml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,86 +2,86 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://mkdocstrings.github.io/python/</loc>
5-
<lastmod>2025-03-20</lastmod>
5+
<lastmod>2025-03-24</lastmod>
66
</url>
77
<url>
88
<loc>https://mkdocstrings.github.io/python/changelog/</loc>
9-
<lastmod>2025-03-20</lastmod>
9+
<lastmod>2025-03-24</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://mkdocstrings.github.io/python/code_of_conduct/</loc>
13-
<lastmod>2025-03-20</lastmod>
13+
<lastmod>2025-03-24</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://mkdocstrings.github.io/python/contributing/</loc>
17-
<lastmod>2025-03-20</lastmod>
17+
<lastmod>2025-03-24</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://mkdocstrings.github.io/python/credits/</loc>
21-
<lastmod>2025-03-20</lastmod>
21+
<lastmod>2025-03-24</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://mkdocstrings.github.io/python/license/</loc>
25-
<lastmod>2025-03-20</lastmod>
25+
<lastmod>2025-03-24</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://mkdocstrings.github.io/python/insiders/</loc>
29-
<lastmod>2025-03-20</lastmod>
29+
<lastmod>2025-03-24</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://mkdocstrings.github.io/python/insiders/changelog/</loc>
33-
<lastmod>2025-03-20</lastmod>
33+
<lastmod>2025-03-24</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://mkdocstrings.github.io/python/insiders/installation/</loc>
37-
<lastmod>2025-03-20</lastmod>
37+
<lastmod>2025-03-24</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://mkdocstrings.github.io/python/reference/api/</loc>
41-
<lastmod>2025-03-20</lastmod>
41+
<lastmod>2025-03-24</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://mkdocstrings.github.io/python/usage/</loc>
45-
<lastmod>2025-03-20</lastmod>
45+
<lastmod>2025-03-24</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://mkdocstrings.github.io/python/usage/customization/</loc>
49-
<lastmod>2025-03-20</lastmod>
49+
<lastmod>2025-03-24</lastmod>
5050
</url>
5151
<url>
5252
<loc>https://mkdocstrings.github.io/python/usage/extensions/</loc>
53-
<lastmod>2025-03-20</lastmod>
53+
<lastmod>2025-03-24</lastmod>
5454
</url>
5555
<url>
5656
<loc>https://mkdocstrings.github.io/python/usage/configuration/docstrings/</loc>
57-
<lastmod>2025-03-20</lastmod>
57+
<lastmod>2025-03-24</lastmod>
5858
</url>
5959
<url>
6060
<loc>https://mkdocstrings.github.io/python/usage/configuration/general/</loc>
61-
<lastmod>2025-03-20</lastmod>
61+
<lastmod>2025-03-24</lastmod>
6262
</url>
6363
<url>
6464
<loc>https://mkdocstrings.github.io/python/usage/configuration/headings/</loc>
65-
<lastmod>2025-03-20</lastmod>
65+
<lastmod>2025-03-24</lastmod>
6666
</url>
6767
<url>
6868
<loc>https://mkdocstrings.github.io/python/usage/configuration/members/</loc>
69-
<lastmod>2025-03-20</lastmod>
69+
<lastmod>2025-03-24</lastmod>
7070
</url>
7171
<url>
7272
<loc>https://mkdocstrings.github.io/python/usage/configuration/signatures/</loc>
73-
<lastmod>2025-03-20</lastmod>
73+
<lastmod>2025-03-24</lastmod>
7474
</url>
7575
<url>
7676
<loc>https://mkdocstrings.github.io/python/usage/docstrings/google/</loc>
77-
<lastmod>2025-03-20</lastmod>
77+
<lastmod>2025-03-24</lastmod>
7878
</url>
7979
<url>
8080
<loc>https://mkdocstrings.github.io/python/usage/docstrings/numpy/</loc>
81-
<lastmod>2025-03-20</lastmod>
81+
<lastmod>2025-03-24</lastmod>
8282
</url>
8383
<url>
8484
<loc>https://mkdocstrings.github.io/python/usage/docstrings/sphinx/</loc>
85-
<lastmod>2025-03-20</lastmod>
85+
<lastmod>2025-03-24</lastmod>
8686
</url>
8787
</urlset>

0 commit comments

Comments
 (0)