From 22ebdd72d9cc316e4510c055ee75ce2f28e9ad5c Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Mon, 30 Mar 2020 14:18:43 +0300 Subject: [PATCH] Add more verbosity for property overrides in RST documentation (cherry picked from commit 38821dc6d74551ff34247c43b15765e9e632c8fc) --- 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 020f3108da9..13bf0989404 100755 --- a/doc/tools/makerst.py +++ b/doc/tools/makerst.py @@ -412,7 +412,7 @@ def make_rst_class(class_def, state, dry_run, output_dir): # type: (ClassDef, S type_rst = property_def.type_name.to_rst(state) default = property_def.default_value if property_def.overridden: - ml.append((type_rst, property_def.name, "**O:** " + default)) + ml.append((type_rst, property_def.name, default + " *(parent override)*")) else: ref = ":ref:`{0}`".format(property_def.name, class_name) ml.append((type_rst, ref, default))