Skip to content

Commit 303ffb7

Browse files
Fix typo in a dataclasses comment. (GH-25454)
(cherry picked from commit 76beadb) Co-authored-by: Eric V. Smith <[email protected]>
1 parent f77ca86 commit 303ffb7

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
@@ -694,7 +694,7 @@ def _get_field(cls, a_name, a_type):
694694
# In addition to checking for actual types here, also check for
695695
# string annotations. get_type_hints() won't always work for us
696696
# (see https://github.com/python/typing/issues/508 for example),
697-
# plus it's expensive and would require an eval for every stirng
697+
# plus it's expensive and would require an eval for every string
698698
# annotation. So, make a best effort to see if this is a ClassVar
699699
# or InitVar using regex's and checking that the thing referenced
700700
# is actually of the correct type.

0 commit comments

Comments
 (0)