Skip to content

Commit 88460f1

Browse files
Remove unnecessary # type comments (#12925)
1 parent 26c30b5 commit 88460f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sphinx/transforms/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class ApplySourceWorkaround(SphinxTransform):
247247
default_priority = 10
248248

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

sphinx/util/docfields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _is_single_paragraph(node: nodes.field_body) -> bool:
3131
if len(node) == 0:
3232
return False
3333
elif len(node) > 1:
34-
for subnode in node[1:]: # type: Node
34+
for subnode in node[1:]:
3535
if not isinstance(subnode, nodes.system_message):
3636
return False
3737
return isinstance(node[0], nodes.paragraph)

0 commit comments

Comments
 (0)