summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-04-17 14:13:44 (GMT)
committerGitHub <noreply@github.com>2021-04-17 14:13:44 (GMT)
commit0121f6792ab49c575e4c34f587d486e1fda85674 (patch)
treec783536f354df217daf533a465a5b285522daff4
parentcdf02879790b8e52456df6e9d58fb8c0842fc359 (diff)
downloadcpython-0121f6792ab49c575e4c34f587d486e1fda85674.zip
cpython-0121f6792ab49c575e4c34f587d486e1fda85674.tar.gz
cpython-0121f6792ab49c575e4c34f587d486e1fda85674.tar.bz2
Fix typo in a dataclasses comment. (GH-25454)
(cherry picked from commit 76beadb8ff86eb2bb248bf918bfb20c4069932f4) Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
-rw-r--r--Lib/dataclasses.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py
index e015254..da7cb74 100644
--- a/Lib/dataclasses.py
+++ b/Lib/dataclasses.py
@@ -696,7 +696,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.