Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
kai687 committed May 30, 2024
1 parent f5ca27b commit b49b3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sphinxawesome_theme/highlighting.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def _extra_args(

def run(self: AwesomeCodeBlock) -> list[Node]:
"""Handle parsing extra options for highlighting."""
literal_nodes = super().run()
literal_nodes: list[Node] = super().run()

hl_added = self._get_line_numbers("emphasize-added")
hl_removed = self._get_line_numbers("emphasize-removed")
Expand All @@ -284,7 +284,7 @@ def run(self: AwesomeCodeBlock) -> list[Node]:
if isinstance(node, nodes.literal_block):
self._extra_args(node, hl_added, hl_removed)

return literal_nodes # type: ignore
return literal_nodes


# These external references are needed, or you'll get a maximum recursion depth error
Expand Down

0 comments on commit b49b3aa

Please sign in to comment.