summaryrefslogtreecommitdiffstats
path: root/Lib/dataclasses.py
diff options
context:
space:
mode:
authorXie Yanbo <xieyanbo@gmail.com>2024-08-12 04:16:41 (GMT)
committerGitHub <noreply@github.com>2024-08-12 04:16:41 (GMT)
commit253c6a0b2f88b3327b7113860b99d665346fe43c (patch)
treeb7607792341c71e620151c1c9e4ad8ec6a7dbda5 /Lib/dataclasses.py
parent9375b9ca3a4998678ba74ff5c77ed540a4dcf887 (diff)
downloadcpython-253c6a0b2f88b3327b7113860b99d665346fe43c.zip
cpython-253c6a0b2f88b3327b7113860b99d665346fe43c.tar.gz
cpython-253c6a0b2f88b3327b7113860b99d665346fe43c.tar.bz2
Fix typos in comments and test code (#122846)
Diffstat (limited to 'Lib/dataclasses.py')
-rw-r--r--Lib/dataclasses.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dataclasses.py b/Lib/dataclasses.py
index 4cba606..141aa41 100644
--- a/Lib/dataclasses.py
+++ b/Lib/dataclasses.py
@@ -656,7 +656,7 @@ def _init_fn(fields, std_fields, kw_only_fields, frozen, has_post_init,
if kw_only_fields:
# Add the keyword-only args. Because the * can only be added if
# there's at least one keyword-only arg, there needs to be a test here
- # (instead of just concatenting the lists together).
+ # (instead of just concatenating the lists together).
_init_params += ['*']
_init_params += [_init_param(f) for f in kw_only_fields]
func_builder.add_fn('__init__',