From d9b3e5ce84dd84e58bb97d9c1fe0f5d735b9d053 Mon Sep 17 00:00:00 2001 From: "Andrii Doroshenko (Xrayez)" Date: Tue, 6 Apr 2021 17:26:18 +0300 Subject: [PATCH] makerst: Fix generation of overridden properties in child classes This only affects `Object` classes, not `Variant`. (cherry picked from commit 679d0380430f2b9b0f852f6b6c61370e69446456) --- doc/tools/makerst.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tools/makerst.py b/doc/tools/makerst.py index e4bec771e36..be703c0a5e7 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}`".format(property_def.name, class_name)