diff options
author | Yurii Karabas <1998uriyyo@gmail.com> | 2021-05-01 02:14:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-01 02:14:30 (GMT) |
commit | c24199184bea0c851c1a7296ae54aaf18ee56752 (patch) | |
tree | daf34100898317581770db30eeb4190acd638a59 /Doc/whatsnew | |
parent | 558df9010915c8fe94f4d7f842e7c5aabbb06b14 (diff) | |
download | cpython-c24199184bea0c851c1a7296ae54aaf18ee56752.zip cpython-c24199184bea0c851c1a7296ae54aaf18ee56752.tar.gz cpython-c24199184bea0c851c1a7296ae54aaf18ee56752.tar.bz2 |
bpo-42269: Add slots parameter to dataclass decorator (GH-24171)
Add slots parameter to dataclass decorator and make_dataclass function.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/3.10.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.10.rst b/Doc/whatsnew/3.10.rst index 1a39066..9c8e296 100644 --- a/Doc/whatsnew/3.10.rst +++ b/Doc/whatsnew/3.10.rst @@ -895,6 +895,12 @@ The ``BUTTON5_*`` constants are now exposed in the :mod:`curses` module if they are provided by the underlying curses library. (Contributed by Zackery Spytz in :issue:`39273`.) +dataclasses +----------- + +Added ``slots`` parameter in :func:`dataclasses.dataclass` decorator. +(Contributed by Yurii Karabas in :issue:`42269`) + .. _distutils-deprecated: distutils |