mirror of
https://github.com/python/cpython.git
synced 2025-09-29 19:56:59 +00:00
bpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24790)
(cherry picked from commit 0554044ddc
)
Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
This commit is contained in:
parent
c6e7cf1ee0
commit
fb3b031030
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ Module-level decorators, classes, and functions
|
|||
attribute ``__hash__ = None`` has a specific meaning to Python, as
|
||||
described in the :meth:`__hash__` documentation.
|
||||
|
||||
If :meth:`__hash__` is not explicit defined, or if it is set to ``None``,
|
||||
If :meth:`__hash__` is not explicitly defined, or if it is set to ``None``,
|
||||
then :func:`dataclass` *may* add an implicit :meth:`__hash__` method.
|
||||
Although not recommended, you can force :func:`dataclass` to create a
|
||||
:meth:`__hash__` method with ``unsafe_hash=True``. This might be the case
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue