Skip to content

Commit 0121f67

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 cdf0287 commit 0121f67

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

0 commit comments

Comments
 (0)