mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-10 23:29:12 +08:00
[docutils] Add parsers.commonmark_wrapper (#14243)
This commit is contained in:
1 parent
0ca73211f3
commit
28d8ff1a80
2 files changed
+12
-1
No files matched your search
@@ -0,0 +1,10 @@
|
||||
from typing import Literal
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from docutils import parsers
|
||||
|
||||
_ParserName: TypeAlias = Literal["pycmark", "myst", "recommonmark"]
|
||||
|
||||
commonmark_parser_names: tuple[_ParserName, ...]
|
||||
Parser: type[parsers.Parser] # if Parser is None or parser_name is empty string, user cannot import current module
|
||||
parser_name: _ParserName
|
||||
Reference in new issue
Block a user