]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in dataclasses documentation (#27360)
authorthomkeh <thomas5max@gmail.com>
Mon, 26 Jul 2021 12:39:45 +0000 (13:39 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Jul 2021 12:39:45 +0000 (08:39 -0400)
"affect" -> "effect"

Doc/library/dataclasses.rst

index e203a1a2132df90e61a2f4e793951e63fb9dad80..4ee75f1cc5ff96ec60d81970a4a80ebee818b65d 100644 (file)
@@ -172,7 +172,7 @@ Module contents
 
    - ``kw_only``: If true (the default value is ``False``), then all
      fields will be marked as keyword-only.  If a field is marked as
-     keyword-only, then the only affect is that the :meth:`__init__`
+     keyword-only, then the only effect is that the :meth:`__init__`
      parameter generated from a keyword-only field must be specified
      with a keyword when :meth:`__init__` is called.  There is no
      effect on any other aspect of dataclasses.  See the