summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-04-12 21:10:31 +0200
committerGitHub <noreply@github.com>2021-04-12 21:10:31 +0200
commitb895071895cffcbcda7f4156d7175ba5b8068852 (patch)
treec3764024d060e52ed339194af11d9ef8545ba75f
parent5c8505c25adf9524bd9ea2bc2ad31eb44190ffcc (diff)
parent679d0380430f2b9b0f852f6b6c61370e69446456 (diff)
Merge pull request #47664 from goostengine/makerst-prop-overridden-object
makerst: Fix generation of overridden properties in child classes
-rwxr-xr-xdoc/tools/makerst.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py
index ae3cc73098..1c6055f8ca 100755
--- a/doc/tools/makerst.py
+++ b/doc/tools/makerst.py
@@ -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)