@@ -51,17 +51,17 @@ def run(self, **kwargs: Any) -> None:
51
51
if hasattr (self .document , "findall" )
52
52
else self .document .traverse # docutils <= 0.17.x
53
53
)
54
- for node in list (get_nodes (nodes .table )):
54
+ for table_node in list (get_nodes (nodes .table )):
55
55
new_node = nodes .container (classes = ["table-wrapper" ])
56
- new_node .update_all_atts (node )
57
- node .parent .replace (node , new_node )
58
- new_node .append (node )
56
+ new_node .update_all_atts (table_node )
57
+ table_node .parent .replace (table_node , new_node )
58
+ new_node .append (table_node )
59
59
60
- for node in list (get_nodes (nodes .math_block )):
60
+ for math_node in list (get_nodes (nodes .math_block )):
61
61
new_node = nodes .container (classes = ["math-wrapper" ])
62
- new_node .update_all_atts (node )
63
- node .parent .replace (node , new_node )
64
- new_node .append (node )
62
+ new_node .update_all_atts (math_node )
63
+ math_node .parent .replace (math_node , new_node )
64
+ new_node .append (math_node )
65
65
66
66
67
67
def has_not_enough_items_to_show_toc (
@@ -326,8 +326,8 @@ def _get_styles(formatter: "HtmlFormatter[str]", *, prefix: str) -> Iterator[str
326
326
"""Get styles out of a formatter, where everything has the correct prefix."""
327
327
for line in formatter .get_linenos_style_defs (): # type: ignore[no-untyped-call]
328
328
yield f"{ prefix } { line } "
329
- yield from formatter .get_background_style_defs (prefix )
330
- yield from formatter .get_token_style_defs (prefix )
329
+ yield from formatter .get_background_style_defs (prefix ) # type: ignore[no-untyped-call]
330
+ yield from formatter .get_token_style_defs (prefix ) # type: ignore[no-untyped-call]
331
331
332
332
333
333
def get_pygments_stylesheet () -> str :
0 commit comments