]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46382 dataclass(slots=True) now takes inherited slots into account (GH-31980)
authorArie Bovenberg <a.c.bovenberg@gmail.com>
Sat, 19 Mar 2022 21:01:17 +0000 (22:01 +0100)
committerGitHub <noreply@github.com>
Sat, 19 Mar 2022 21:01:17 +0000 (17:01 -0400)
commit82e9b0bb0ac44d4942b9e01b2cdd2ca85c17e563
treec1cb2d3397dc3b907f8d19c7682a4703c4494d75
parent383a3bec74f0bf0c1b1bef9e0048db389c618452
bpo-46382 dataclass(slots=True) now takes inherited slots into account (GH-31980)

Do not include any members in __slots__ that are already in a base class's __slots__.
Doc/library/dataclasses.rst
Lib/dataclasses.py
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2022-03-18-17-25-57.bpo-46382.zQUJ66.rst [new file with mode: 0644]