summaryrefslogtreecommitdiffstats
path: root/Lib/dataclasses.py
diff options
context:
space:
mode:
authorMin ho Kim <minho42@gmail.com>2019-07-21 20:12:33 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2019-07-21 20:12:33 (GMT)
commit96e12d5f4f3c5a20986566038ee763dff3c228a1 (patch)
treeae4039f978a155a295903e084f4531d42b8cf7a8 /Lib/dataclasses.py
parent8e3a7380ecb310b50e48f47d1f26190cc9c45eb6 (diff)
downloadcpython-96e12d5f4f3c5a20986566038ee763dff3c228a1.zip
cpython-96e12d5f4f3c5a20986566038ee763dff3c228a1.tar.gz
cpython-96e12d5f4f3c5a20986566038ee763dff3c228a1.tar.bz2
Fix typos in docs, comments and test assert messages (#14872)
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 5e57e20..f778a27 100644
--- a/Lib/dataclasses.py
+++ b/Lib/dataclasses.py
@@ -1189,7 +1189,7 @@ def make_dataclass(cls_name, fields, *, bases=(), namespace=None, init=True,
raise TypeError(f'Invalid field: {item!r}')
if not isinstance(name, str) or not name.isidentifier():
- raise TypeError(f'Field names must be valid identifers: {name!r}')
+ raise TypeError(f'Field names must be valid identifiers: {name!r}')
if keyword.iskeyword(name):
raise TypeError(f'Field names must not be keywords: {name!r}')
if name in seen: