mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix dataclassses spelling (GH-28837)
This commit is contained in:
parent
dbd62e74da
commit
5b4a7675bc
3 changed files with 3 additions and 3 deletions
|
@ -1387,7 +1387,7 @@ def make_dataclass(cls_name, fields, *, bases=(), namespace=None, init=True,
|
|||
ns['__annotations__'] = annotations
|
||||
|
||||
# We use `types.new_class()` instead of simply `type()` to allow dynamic creation
|
||||
# of generic dataclassses.
|
||||
# of generic dataclasses.
|
||||
cls = types.new_class(cls_name, bases, {}, exec_body_callback)
|
||||
|
||||
# Apply the normal decorator.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue