Skip to content

Commit 5c5f3ad

Browse files
authored
Docs: adding missing mutable-override to section title (#16886)
Closes #16880 Supercedes #16881
1 parent b956e6a commit 5c5f3ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/error_code_list2.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -484,11 +484,11 @@ Example:
484484
485485
.. _code-mutable-override:
486486

487-
Check that overrides of mutable attributes are safe
488-
---------------------------------------------------
487+
Check that overrides of mutable attributes are safe [mutable-override]
488+
----------------------------------------------------------------------
489489

490-
This will enable the check for unsafe overrides of mutable attributes. For
491-
historical reasons, and because this is a relatively common pattern in Python,
490+
`mutable-override` will enable the check for unsafe overrides of mutable attributes.
491+
For historical reasons, and because this is a relatively common pattern in Python,
492492
this check is not enabled by default. The example below is unsafe, and will be
493493
flagged when this error code is enabled:
494494

0 commit comments

Comments
 (0)