summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-03-08 22:53:22 (GMT)
committerGitHub <noreply@github.com>2021-03-08 22:53:22 (GMT)
commit6d4273356764a3837c914b2aced7a668c534e0be (patch)
treea993b108b2819449a2b6c17fc163ab06ede5ecf3
parent0ecfe5fca44ee4b3a4a8763e8e972b13850dd135 (diff)
downloadcpython-6d4273356764a3837c914b2aced7a668c534e0be.zip
cpython-6d4273356764a3837c914b2aced7a668c534e0be.tar.gz
cpython-6d4273356764a3837c914b2aced7a668c534e0be.tar.bz2
bpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24791)
(cherry picked from commit 0554044ddccdb7bf1fa4a8bc880e7a7b59f6479c) Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com> Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
-rw-r--r--Doc/library/dataclasses.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index a7fbaaa..24acd74 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -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