Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
helpingstar committed Feb 16, 2024
1 parent 86db2de commit fbccdb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ your object**. Mutations of objects used as hash keys lead to several subtle pro
which is why for example mutable Python containers (e.g. :class:`dict`, :class:`list`)
don't define ``__hash__``, while their immutable counterparts (e.g. :class:`tuple`) do.

If your class relies on in-place mutations (such as setting ```self.attr = ...`` within its
If your class relies on in-place mutations (such as setting ``self.attr = ...`` within its
methods), then your object is not really "static" and marking it as such may lead to problems.
Fortunately, there's another option for this case.

Expand Down

0 comments on commit fbccdb2

Please sign in to comment.