@@ -920,7 +920,7 @@ def pullup(node, typ, dest):
920
920
if self .app .config .breathe_order_parameters_first :
921
921
return detailed + fieldLists + admonitions
922
922
else :
923
- return detailed + admonitions + fieldLists
923
+ return detailed + admonitions + fieldLists # type: ignore[operator]
924
924
925
925
def update_signature (self , signature , obj_type ):
926
926
"""Update the signature node if necessary, e.g. add qualifiers."""
@@ -1204,9 +1204,15 @@ def render_signature(file_data, doxygen_target, name, kind):
1204
1204
1205
1205
# Set up the title
1206
1206
1207
- if kind in ["group" , "page" ] and file_data .compounddef and file_data .compounddef .title :
1207
+ if (
1208
+ kind in ["group" , "page" ]
1209
+ and file_data .compounddef
1210
+ and file_data .compounddef .title
1211
+ ):
1208
1212
if "no-title" not in options :
1209
- full_title = " " .join ([i .getValue () for i in file_data .compounddef .title .content_ ])
1213
+ full_title = " " .join (
1214
+ [i .getValue () for i in file_data .compounddef .title .content_ ]
1215
+ )
1210
1216
title_signode .append (nodes .emphasis (text = kind ))
1211
1217
title_signode .append (nodes .Text (" " ))
1212
1218
title_signode .append (addnodes .desc_name (text = full_title ))
@@ -1883,7 +1889,7 @@ def visit_docrow(self, node) -> List[Node]:
1883
1889
row = nodes .row ()
1884
1890
cols = self .render_iterable (node .entry )
1885
1891
elem : Union [nodes .thead , nodes .tbody ]
1886
- if all (col .get ("heading" , False ) for col in cols ):
1892
+ if all (col .get ("heading" , False ) for col in cols ): # type: ignore[attr-defined]
1887
1893
elem = nodes .thead ()
1888
1894
else :
1889
1895
elem = nodes .tbody ()
@@ -1906,9 +1912,9 @@ def visit_doctable(self, node) -> List[Node]:
1906
1912
# "envelop" rows there, namely thead and tbody (eg it will need to be updated
1907
1913
# if Doxygen one day adds support for tfoot)
1908
1914
1909
- tags : Dict [str , List ] = {row .starttag (): [] for row in rows }
1915
+ tags : Dict [str , List ] = {row .starttag (): [] for row in rows } # type: ignore[attr-defined]
1910
1916
for row in rows :
1911
- tags [row .starttag ()].append (row .next_node ())
1917
+ tags [row .starttag ()].append (row .next_node ()) # type: ignore[attr-defined]
1912
1918
1913
1919
def merge_row_types (root , elem , elems ):
1914
1920
for node in elems :
@@ -2031,7 +2037,7 @@ def visit_function(self, node) -> List[Node]:
2031
2037
# Insert Doxygen target into the first signature node.
2032
2038
if not self .app .env .config .breathe_debug_trace_doxygen_ids :
2033
2039
target = self .create_doxygen_target (node )
2034
- rst_node .children [0 ].insert (0 , target )
2040
+ rst_node .children [0 ].insert (0 , target ) # type: ignore[attr-defined]
2035
2041
2036
2042
finder .content .extend (self .description (node ))
2037
2043
return nodes_
0 commit comments