mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-06-23 09:18:44 +08:00
[docutils] Update to 0.22.1 (#14737)
This commit is contained in:
@@ -21,18 +21,4 @@ docutils.parsers.recommonmark_wrapper
|
||||
docutils.writers.odf_odt.pygmentsformatter # import `pygments` third-party library
|
||||
|
||||
# `TYPE_CHECKING` variable is for internal use:
|
||||
docutils.TYPE_CHECKING
|
||||
docutils.core.TYPE_CHECKING
|
||||
docutils.examples.TYPE_CHECKING
|
||||
docutils.frontend.TYPE_CHECKING
|
||||
docutils.io.TYPE_CHECKING
|
||||
docutils.languages.TYPE_CHECKING
|
||||
docutils.nodes.TYPE_CHECKING
|
||||
docutils.parsers.TYPE_CHECKING
|
||||
docutils.parsers.rst.directives.TYPE_CHECKING
|
||||
docutils.parsers.rst.directives.misc.TYPE_CHECKING
|
||||
docutils.parsers.rst.languages.TYPE_CHECKING
|
||||
docutils.readers.TYPE_CHECKING
|
||||
docutils.utils.TYPE_CHECKING
|
||||
docutils.writers.TYPE_CHECKING
|
||||
docutils.writers._html_base.TYPE_CHECKING
|
||||
docutils.*\.TYPE_CHECKING
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
version = "0.22.*"
|
||||
version = "0.22.1"
|
||||
upstream_repository = "https://sourceforge.net/p/docutils/code"
|
||||
|
||||
@@ -26,6 +26,7 @@ class RSTStateMachine(StateMachineWS[list[str]]):
|
||||
document: nodes.document
|
||||
reporter: Reporter
|
||||
node: nodes.document | None
|
||||
section_level_offset: int
|
||||
def run( # type: ignore[override]
|
||||
self,
|
||||
input_lines: Sequence[str] | StringList,
|
||||
@@ -35,13 +36,9 @@ class RSTStateMachine(StateMachineWS[list[str]]):
|
||||
inliner: Inliner | None = None,
|
||||
) -> None: ...
|
||||
|
||||
class NestedStateMachine(StateMachineWS[list[str]]):
|
||||
match_titles: bool
|
||||
memo: Incomplete
|
||||
document: nodes.document
|
||||
reporter: Reporter
|
||||
language: Incomplete
|
||||
node: Incomplete
|
||||
class NestedStateMachine(RSTStateMachine):
|
||||
parent_state_machine: Incomplete | None
|
||||
def __init__(self, state_classes, initial_state, debug: bool = False, parent_state_machine=None) -> None: ...
|
||||
def run( # type: ignore[override]
|
||||
self, input_lines: Sequence[str] | StringList, input_offset: int, memo, node, match_titles: bool = True
|
||||
) -> list[str]: ...
|
||||
@@ -61,13 +58,13 @@ class RSTState(StateWS[list[str]]):
|
||||
def bof(self, context: list[str]): ...
|
||||
def nested_parse(
|
||||
self,
|
||||
block,
|
||||
block: StringList,
|
||||
input_offset: int,
|
||||
node,
|
||||
node: nodes.Element | None = None,
|
||||
match_titles: bool = False,
|
||||
state_machine_class: type[StateMachine[list[str]]] | None = None,
|
||||
state_machine_kwargs=None,
|
||||
): ...
|
||||
state_machine_class: StateMachineWS[Incomplete] | None = None,
|
||||
state_machine_kwargs: dict[Incomplete, Incomplete] | None = None,
|
||||
) -> int: ...
|
||||
def nested_list_parse(
|
||||
self,
|
||||
block,
|
||||
|
||||
@@ -216,8 +216,8 @@ class LaTeXTranslator(nodes.NodeVisitor):
|
||||
def attval(self, text: str, whitespace: re.Pattern[str] = ...) -> str: ...
|
||||
def is_inline(self, node: nodes.Node) -> bool: ...
|
||||
def ids_to_labels(
|
||||
self, node: nodes.Element, set_anchor: bool = True, protect: bool = False, newline: bool = False
|
||||
) -> list[Incomplete]: ...
|
||||
self, node: nodes.Element, set_anchor: bool = True, protect: bool = False, newline: bool = False, pre_nl: bool = False
|
||||
) -> list[str]: ...
|
||||
def append_hypertargets(self, node: nodes.Element) -> None: ...
|
||||
def set_align_from_classes(self, node) -> None: ...
|
||||
def insert_align_declaration(self, node: nodes.Element, default: str | None = None) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user