Skip to content

Commit

Permalink
Merge pull request godotengine#97337 from Ivorforce/patch-1
Browse files Browse the repository at this point in the history
In make_rst.py, include the parent class in 'Inherits:' even if it is not known.
  • Loading branch information
akien-mga committed Sep 23, 2024
2 parents e3aa152 + 50ad99b commit d5aadc3
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 d5aadc3

Please sign in to comment.