Merge pull request #37426 from pycbouh/docs-override-properties

Add more verbosity for property overrides in RST documentation
This commit is contained in:
Rémi Verschelde 2020-04-10 12:25:47 +02:00 committed by GitHub
commit f33bba15b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,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}<class_{1}_property_{0}>`".format(property_def.name, class_name)
ml.append((type_rst, ref, default))