summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorYurii Karabas <1998uriyyo@gmail.com>2021-05-01 02:14:30 (GMT)
committerGitHub <noreply@github.com>2021-05-01 02:14:30 (GMT)
commitc24199184bea0c851c1a7296ae54aaf18ee56752 (patch)
treedaf34100898317581770db30eeb4190acd638a59 /Misc
parent558df9010915c8fe94f4d7f842e7c5aabbb06b14 (diff)
downloadcpython-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 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-01-08-22-32-13.bpo-42269.W5v8z4.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-01-08-22-32-13.bpo-42269.W5v8z4.rst b/Misc/NEWS.d/next/Library/2021-01-08-22-32-13.bpo-42269.W5v8z4.rst
new file mode 100644
index 0000000..595f873
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-01-08-22-32-13.bpo-42269.W5v8z4.rst
@@ -0,0 +1,3 @@
+Add ``slots`` parameter to ``dataclasses.dataclass`` decorator to
+automatically generate ``__slots__`` for class. Patch provided by Yurii
+Karabas.