1 from typing import Any, ClassVar, Type
3 from docutils import Component
5 class Parser(Component):
6 component_type: ClassVar[str]
7 config_section: ClassVar[str]
8 inputstring: Any # defined after call to setup_parse()
9 document: Any # defined after call to setup_parse()
10 def parse(self, inputstring: str, document) -> None: ...
11 def setup_parse(self, inputstring: str, document) -> None: ...
12 def finish_parse(self) -> None: ...
14 _parser_aliases: dict[str, str]
16 def get_parser_class(parser_name: str) -> Type[Parser]: ...