diff options
author | Eric V. Smith <ericvsmith@users.noreply.github.com> | 2021-04-17 13:53:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-17 13:53:24 (GMT) |
commit | 76beadb8ff86eb2bb248bf918bfb20c4069932f4 (patch) | |
tree | 09d552e982ab94f9795d526065a37b9ccaab0a9a /Lib/dataclasses.py | |
parent | b8d0fa035d74ae6ae00794c9af636b427c5dc650 (diff) | |
download | cpython-76beadb8ff86eb2bb248bf918bfb20c4069932f4.zip cpython-76beadb8ff86eb2bb248bf918bfb20c4069932f4.tar.gz cpython-76beadb8ff86eb2bb248bf918bfb20c4069932f4.tar.bz2 |
Fix typo in a dataclasses comment. (GH-25454)
Diffstat (limited to 'Lib/dataclasses.py')
-rw-r--r-- | Lib/dataclasses.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py index 3ccfbbd..1b95bb9 100644 --- a/Lib/dataclasses.py +++ b/Lib/dataclasses.py @@ -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. |