Skip to content

Commit 1a95fb6

Browse files
Clean up Lint
1 parent fd05919 commit 1a95fb6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Doc/tools/extensions/availability.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
from __future__ import annotations
44
from docutils import nodes
5+
from sphinx import addnodes
56
from sphinx.util import logging
67
from sphinx.util.docutils import SphinxDirective
78

89

910
class Availability(SphinxDirective):
10-
1111
has_content = True
1212
required_arguments = 1
1313
optional_arguments = 0
@@ -42,10 +42,14 @@ def run(self):
4242

4343
def parse_platforms(self):
4444
"""Parse platform information from arguments
45+
4546
Arguments is a comma-separated string of platforms. A platform may
4647
be prefixed with "not " to indicate that a feature is not available.
48+
4749
Example::
50+
4851
.. availability:: Windows, Linux >= 4.2, not WASI
52+
4953
Arguments like "Linux >= 3.17 with glibc >= 2.27" are currently not
5054
parsed into separate tokens.
5155
"""

0 commit comments

Comments
 (0)