]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in a dataclasses comment. (GH-25454)
authorEric V. Smith <ericvsmith@users.noreply.github.com>
Sat, 17 Apr 2021 13:53:24 +0000 (09:53 -0400)
committerGitHub <noreply@github.com>
Sat, 17 Apr 2021 13:53:24 +0000 (09:53 -0400)
Lib/dataclasses.py

index 3ccfbbd92035a2928cf5352e7faea9f9d5de1a23..1b95bb961d9ecb91d91f01f94791a2ae980a119c 100644 (file)
@@ -718,7 +718,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.