[Python-checkins] Fix typo in dataclasses documentation (#27360)

ericvsmith webhook-mailer at python.org
Mon Jul 26 08:39:55 EDT 2021


https://github.com/python/cpython/commit/aa0e4a64b083ecf0c3abcdbaeda940c946a23048
commit: aa0e4a64b083ecf0c3abcdbaeda940c946a23048
branch: main
author: thomkeh <thomas5max at gmail.com>
committer: ericvsmith <ericvsmith at users.noreply.github.com>
date: 2021-07-26T08:39:45-04:00
summary:

Fix typo in dataclasses documentation (#27360)

"affect" -> "effect"

files:
M Doc/library/dataclasses.rst

diff --git a/Doc/library/dataclasses.rst b/Doc/library/dataclasses.rst
index e203a1a2132df..4ee75f1cc5ff9 100644
--- a/Doc/library/dataclasses.rst
+++ b/Doc/library/dataclasses.rst
@@ -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



More information about the Python-checkins mailing list