Add more verbosity for property overrides in RST documentation
(cherry picked from commit 38821dc6d7
)
This commit is contained in:
parent
472b0e0d34
commit
22ebdd72d9
|
@ -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)
|
type_rst = property_def.type_name.to_rst(state)
|
||||||
default = property_def.default_value
|
default = property_def.default_value
|
||||||
if property_def.overridden:
|
if property_def.overridden:
|
||||||
ml.append((type_rst, property_def.name, "**O:** " + default))
|
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)
|
||||||
ml.append((type_rst, ref, default))
|
ml.append((type_rst, ref, default))
|
||||||
|
|
Loading…
Reference in New Issue