Skip to content

Commit 76beadb

Browse files
authored
Fix typo in a dataclasses comment. (GH-25454)
1 parent b8d0fa0 commit 76beadb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ def _get_field(cls, a_name, a_type):
718718
# In addition to checking for actual types here, also check for
719719
# string annotations. get_type_hints() won't always work for us
720720
# (see https://github.com/python/typing/issues/508 for example),
721-
# plus it's expensive and would require an eval for every stirng
721+
# plus it's expensive and would require an eval for every string
722722
# annotation. So, make a best effort to see if this is a ClassVar
723723
# or InitVar using regex's and checking that the thing referenced
724724
# is actually of the correct type.

0 commit comments

Comments
 (0)