1 from typing import Any, ClassVar, Tuple
2 from typing_extensions import Literal
4 from docutils import parsers
5 from docutils.parsers.rst import states
7 class Parser(parsers.Parser):
8 config_section_dependencies: ClassVar[Tuple[str, ...]]
9 initial_state: Literal["Body", "RFC2822Body"]
12 def __init__(self, rfc2822: bool = ..., inliner: Any | None = ...) -> None: ...
14 class DirectiveError(Exception):
17 def __init__(self, level: Any, message: str) -> None: ...
24 options: dict[str, Any],
29 state: states.RSTState,
30 state_machine: states.RSTStateMachine,
32 def __getattr__(self, name: str) -> Any: ... # incomplete
34 def convert_directive_function(directive_fn): ...