Skip to content

Commit

Permalink
Merge pull request #47664 from goostengine/makerst-prop-overridden-ob…
Browse files Browse the repository at this point in the history
…ject

makerst: Fix generation of overridden properties in child classes
  • Loading branch information
akien-mga authored Apr 12, 2021
2 parents 5c8505c + 679d038 commit b895071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tools/makerst.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def make_rst_class(class_def, state, dry_run, output_dir): # type: (ClassDef, S
for property_def in class_def.properties.values():
type_rst = property_def.type_name.to_rst(state)
default = property_def.default_value
if property_def.overridden:
if default is not None and property_def.overridden:
ml.append((type_rst, property_def.name, default + " *(parent override)*"))
else:
ref = ":ref:`{0}<class_{1}_property_{0}>`".format(property_def.name, class_name)
Expand Down

0 comments on commit b895071

Please sign in to comment.