mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-22 16:10:29 +08:00
[docutils] Add parsers.commonmark_wrapper (#14243)
This commit is contained in:
@@ -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