Skip to content

Commit 3e5d622

Browse files
srittauAlexWaygood
andauthored
Apply suggestions from code review
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent 9069a93 commit 3e5d622

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

stubs/docutils/@tests/stubtest_allowlist.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ docutils.parsers.recommonmark_wrapper
2121
docutils.writers.odf_odt.pygmentsformatter # import `pygments` third-party library
2222

2323
# `TYPE_CHECKING` variable is for internal use:
24-
.*\.TYPE_CHECKING
24+
docutils.*\.TYPE_CHECKING

stubs/docutils/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "~= 0.22.1"
1+
version = "0.22.1"
22
upstream_repository = "https://sourceforge.net/p/docutils/code"

stubs/docutils/docutils/parsers/rst/states.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class RSTStateMachine(StateMachineWS[list[str]]):
3737
) -> None: ...
3838

3939
class NestedStateMachine(RSTStateMachine):
40-
parent_state_machine: Incomplete
40+
parent_state_machine: Incomplete | None
4141
def __init__(self, state_classes, initial_state, debug: bool = False, parent_state_machine=None) -> None: ...
4242
def run( # type: ignore[override]
4343
self, input_lines: Sequence[str] | StringList, input_offset: int, memo, node, match_titles: bool = True

stubs/docutils/docutils/writers/latex2e/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ class LaTeXTranslator(nodes.NodeVisitor):
217217
def is_inline(self, node: nodes.Node) -> bool: ...
218218
def ids_to_labels(
219219
self, node: nodes.Element, set_anchor: bool = True, protect: bool = False, newline: bool = False, pre_nl: bool = False
220-
) -> list[Incomplete]: ...
220+
) -> list[str]: ...
221221
def append_hypertargets(self, node: nodes.Element) -> None: ...
222222
def set_align_from_classes(self, node) -> None: ...
223223
def insert_align_declaration(self, node: nodes.Element, default: str | None = None) -> None: ...

0 commit comments

Comments
 (0)