Skip to content

Commit d5aadc3

Browse files
committed
Merge pull request godotengine#97337 from Ivorforce/patch-1
In make_rst.py, include the parent class in 'Inherits:' even if it is not known.
2 parents e3aa152 + 50ad99b commit d5aadc3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/tools/make_rst.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,13 +949,17 @@ def make_rst_class(class_def: ClassDef, state: State, dry_run: bool, output_dir:
949949
inherits = class_def.inherits.strip()
950950
f.write(f'**{translate("Inherits:")}** ')
951951
first = True
952-
while inherits in state.classes:
952+
while inherits is not None:
953953
if not first:
954954
f.write(" **<** ")
955955
else:
956956
first = False
957957

958958
f.write(make_type(inherits, state))
959+
960+
if inherits not in state.classes:
961+
break # Parent unknown.
962+
959963
inode = state.classes[inherits].inherits
960964
if inode:
961965
inherits = inode.strip()

0 commit comments

Comments
 (0)