Skip to content

Commit 5b4a767

Browse files
authored
Fix dataclassses spelling (GH-28837)
1 parent dbd62e7 commit 5b4a767

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Doc/whatsnew/3.10.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ Added ``slots`` parameter in :func:`dataclasses.dataclass` decorator.
996996
Keyword-only fields
997997
~~~~~~~~~~~~~~~~~~~
998998
999-
dataclassses now supports fields that are keyword-only in the
999+
dataclasses now supports fields that are keyword-only in the
10001000
generated __init__ method. There are a number of ways of specifying
10011001
keyword-only fields.
10021002

Lib/dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ def exec_body_callback(ns):
13871387
ns['__annotations__'] = annotations
13881388

13891389
# We use `types.new_class()` instead of simply `type()` to allow dynamic creation
1390-
# of generic dataclassses.
1390+
# of generic dataclasses.
13911391
cls = types.new_class(cls_name, bases, {}, exec_body_callback)
13921392

13931393
# Apply the normal decorator.

Lib/test/test_dataclasses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1907,7 +1907,7 @@ class Parent(Generic[T]):
19071907
# Check MRO resolution.
19081908
self.assertEqual(Child.__mro__, (Child, Parent, Generic, object))
19091909

1910-
def test_dataclassses_pickleable(self):
1910+
def test_dataclasses_pickleable(self):
19111911
global P, Q, R
19121912
@dataclass
19131913
class P:

0 commit comments

Comments
 (0)