There was an error while loading. Please reload this page.
1 parent b8d0fa0 commit 76beadbCopy full SHA for 76beadb
1 file changed
Lib/dataclasses.py
@@ -718,7 +718,7 @@ def _get_field(cls, a_name, a_type):
718
# In addition to checking for actual types here, also check for
719
# string annotations. get_type_hints() won't always work for us
720
# (see https://github.com/python/typing/issues/508 for example),
721
- # plus it's expensive and would require an eval for every stirng
+ # plus it's expensive and would require an eval for every string
722
# annotation. So, make a best effort to see if this is a ClassVar
723
# or InitVar using regex's and checking that the thing referenced
724
# is actually of the correct type.
0 commit comments