Skip to content

Commit e28c44d

Browse files
committed
fix linter issues
1 parent d1293f7 commit e28c44d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: sphinx/writers/latex.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ def depart_desc(self, node: Element) -> None:
700700
self.body.append(CR + r'\end{fulllineitems}' + BLANKLINE)
701701

702702
def _visit_signature_line(self, node: Element) -> None:
703-
def next_sibling(e: Element) -> Element | None:
703+
def next_sibling(e: Node) -> Node | None:
704704
try:
705705
return e.parent[e.parent.index(e) + 1]
706706
except (AttributeError, IndexError):

Diff for: sphinx/writers/text.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def __init__(self, document: nodes.document, builder: TextBuilder) -> None:
397397
Used by visit_* and depart_* functions in conjunction with the tree
398398
traversal. Make sure that the pops correspond to the pushes.
399399
"""
400-
self.context = []
400+
self.context: list[str] = []
401401

402402
def add_text(self, text: str) -> None:
403403
self.states[-1].append((-1, text))

0 commit comments

Comments
 (0)