File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments