]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-43415: Fix typo on dataclasses.rst (GH-24789) (GH-24791)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 8 Mar 2021 22:53:22 +0000 (14:53 -0800)
committerGitHub <noreply@github.com>
Mon, 8 Mar 2021 22:53:22 +0000 (17:53 -0500)
(cherry picked from commit 0554044ddccdb7bf1fa4a8bc880e7a7b59f6479c)

Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
Co-authored-by: Guilherme Martins Crocetti <gmcrocetti@gmail.com>
Doc/library/dataclasses.rst

index a7fbaaa106707cad39b2ccac2dde93044a2ccdb3..24acd7417d84d985bcccd180097f0d7a5a436e2a 100644 (file)
@@ -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