File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ docutils.nodes.NodeVisitor.depart_\w+ # Methods are discovered dynamically on c
9
9
docutils.nodes.NodeVisitor.visit_\w+ # Methods are discovered dynamically on commonly-used subclasses
10
10
# these methods take a rawsource parameter that has been deprecated and is completely ignored, so we omit it from the stub
11
11
docutils.nodes.Text.__new__
12
- docutils.parsers.recommonmark_wrapper
12
+ docutils.parsers.commonmark_wrapper # doesn't exist at runtime of stubtests
13
+ docutils.parsers.recommonmark_wrapper # doesn't exist at runtime of stubtests
13
14
docutils.parsers.rst.directives.admonitions.BaseAdmonition.node_class # must be overridden by base classes (pseudo-abstract)
14
15
docutils.statemachine.State.nested_sm # is initialised in __init__
15
16
docutils.statemachine.State.nested_sm_kwargs # is initialised in __init__
Original file line number Diff line number Diff line change
1
+ from typing import Literal
2
+ from typing_extensions import TypeAlias
3
+
4
+ from docutils import parsers
5
+
6
+ _ParserName : TypeAlias = Literal ["pycmark" , "myst" , "recommonmark" ]
7
+
8
+ commonmark_parser_names : tuple [_ParserName , ...]
9
+ Parser : type [parsers .Parser ] # if Parser is None or parser_name is empty string, user cannot import current module
10
+ parser_name : _ParserName
You can’t perform that action at this time.
0 commit comments