Skip to content

Commit

Permalink
Docs: adding missing mutable-override to section title (#16886)
Browse files Browse the repository at this point in the history
Closes #16880
Supercedes #16881
  • Loading branch information
jamesbraza committed Feb 7, 2024
1 parent b956e6a commit 5c5f3ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/error_code_list2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -484,11 +484,11 @@ Example:
.. _code-mutable-override:

Check that overrides of mutable attributes are safe
---------------------------------------------------
Check that overrides of mutable attributes are safe [mutable-override]
----------------------------------------------------------------------

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

Expand Down

0 comments on commit 5c5f3ad

Please sign in to comment.