Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
picnixz committed Jun 3, 2023
1 parent d1293f7 commit e28c44d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx/writers/latex.py
Expand Up @@ -700,7 +700,7 @@ def depart_desc(self, node: Element) -> None:
self.body.append(CR + r'\end{fulllineitems}' + BLANKLINE)

def _visit_signature_line(self, node: Element) -> None:
def next_sibling(e: Element) -> Element | None:
def next_sibling(e: Node) -> Node | None:
try:
return e.parent[e.parent.index(e) + 1]
except (AttributeError, IndexError):
Expand Down
2 changes: 1 addition & 1 deletion sphinx/writers/text.py
Expand Up @@ -397,7 +397,7 @@ def __init__(self, document: nodes.document, builder: TextBuilder) -> None:
Used by visit_* and depart_* functions in conjunction with the tree
traversal. Make sure that the pops correspond to the pushes.
"""
self.context = []
self.context: list[str] = []

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

0 comments on commit e28c44d

Please sign in to comment.