Skip to content

Commit

Permalink
In make_rst.py, include the parent class in 'Inherits:' even if it is…
Browse files Browse the repository at this point in the history
… not known.
  • Loading branch information
Ivorforce authored Sep 22, 2024
1 parent e4e024a commit 50ad99b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/tools/make_rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,13 +949,17 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
inherits = class_def.inherits.strip()
f.write(f'**{translate("Inherits:")}** ')
first = True
while inherits in state.classes:
while inherits is not None:
if not first:
f.write(" **<** ")
else:
first = False

f.write(make_type(inherits, state))

if inherits not in state.classes:
break # Parent unknown.

inode = state.classes[inherits].inherits
if inode:
inherits = inode.strip()
Expand Down

0 comments on commit 50ad99b

Please sign in to comment.