[Python-checkins] Fix typo in a dataclasses comment. (GH-25454)

miss-islington webhook-mailer at python.org
Sat Apr 17 10:11:24 EDT 2021


https://github.com/python/cpython/commit/303ffb74a38dfed5c62ca6d8a2d53d80b696feab
commit: 303ffb74a38dfed5c62ca6d8a2d53d80b696feab
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2021-04-17T07:11:16-07:00
summary:

Fix typo in a dataclasses comment. (GH-25454)

(cherry picked from commit 76beadb8ff86eb2bb248bf918bfb20c4069932f4)

Co-authored-by: Eric V. Smith <ericvsmith at users.noreply.github.com>

files:
M Lib/dataclasses.py

diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py
index 5825e8e523053..c9a2186b6a8dc 100644
--- a/Lib/dataclasses.py
+++ b/Lib/dataclasses.py
@@ -694,7 +694,7 @@ def _get_field(cls, a_name, a_type):
     # In addition to checking for actual types here, also check for
     # string annotations.  get_type_hints() won't always work for us
     # (see https://github.com/python/typing/issues/508 for example),
-    # plus it's expensive and would require an eval for every stirng
+    # plus it's expensive and would require an eval for every string
     # annotation.  So, make a best effort to see if this is a ClassVar
     # or InitVar using regex's and checking that the thing referenced
     # is actually of the correct type.



More information about the Python-checkins mailing list