Skip to content

Commit

Permalink
Remove unnecessary # type comments (#12925)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtheturtle committed Sep 28, 2024
1 parent 26c30b5 commit 88460f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sphinx/transforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class ApplySourceWorkaround(SphinxTransform):
default_priority = 10

def apply(self, **kwargs: Any) -> None:
for node in self.document.findall(): # type: Node
for node in self.document.findall():
if isinstance(node, nodes.TextElement | nodes.image | nodes.topic):
apply_source_workaround(node)

Expand Down
2 changes: 1 addition & 1 deletion sphinx/util/docfields.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _is_single_paragraph(node: nodes.field_body) -> bool:
if len(node) == 0:
return False
elif len(node) > 1:
for subnode in node[1:]: # type: Node
for subnode in node[1:]:
if not isinstance(subnode, nodes.system_message):
return False
return isinstance(node[0], nodes.paragraph)
Expand Down

0 comments on commit 88460f1

Please sign in to comment.