Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e086bfe

Browse filesBrowse files
Fix dataclassses spelling (GH-28837) (GH-28841)
(cherry picked from commit 5b4a767) Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com> Co-authored-by: Landon Yarrington <33426811+jly36963@users.noreply.github.com>
1 parent c80f0b7 commit e086bfe
Copy full SHA for e086bfe

File tree

3 files changed

+3
-3
lines changed
Filter options

3 files changed

+3
-3
lines changed

‎Doc/whatsnew/3.10.rst

Copy file name to clipboardExpand all lines: Doc/whatsnew/3.10.rst
+1-1Lines 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

Copy file name to clipboardExpand all lines: Lib/dataclasses.py
+1-1Lines 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

Copy file name to clipboardExpand all lines: Lib/test/test_dataclasses.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.