makerst: Fix generation of overridden properties in child classes
This only affects `Object` classes, not `Variant`.
(cherry picked from commit 679d038043
)
This commit is contained in:
parent
cdd921e908
commit
d9b3e5ce84
1 changed files with 1 additions and 1 deletions
|
@ -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():
|
for property_def in class_def.properties.values():
|
||||||
type_rst = property_def.type_name.to_rst(state)
|
type_rst = property_def.type_name.to_rst(state)
|
||||||
default = property_def.default_value
|
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)*"))
|
ml.append((type_rst, property_def.name, default + " *(parent override)*"))
|
||||||
else:
|
else:
|
||||||
ref = ":ref:`{0}<class_{1}_property_{0}>`".format(property_def.name, class_name)
|
ref = ":ref:`{0}<class_{1}_property_{0}>`".format(property_def.name, class_name)
|
||||||
|
|
Loading…
Reference in a new issue