]> granicus.if.org Git - python/commit
bpo-33100: Dataclasses now handles __slots__ and default values correctly. (GH-6152)
authorEric V. Smith <ericvsmith@users.noreply.github.com>
Tue, 20 Mar 2018 01:07:51 +0000 (21:07 -0400)
committerGitHub <noreply@github.com>
Tue, 20 Mar 2018 01:07:51 +0000 (21:07 -0400)
commit7389fd935c95b4b6f094312294e703ee0de18719
treedb6bb8cbf62b96d09d532d21f3bd939e1b64e8b0
parent4573820d2a9156346392838d455e89f33067e9dd
bpo-33100: Dataclasses now handles __slots__ and default values correctly. (GH-6152)

If the class has a member that's a MemberDescriptorType, it's not a default value, it's from that member being in __slots__.
Lib/dataclasses.py
Lib/test/test_dataclasses.py
Misc/NEWS.d/next/Library/2018-03-19-20-47-00.bpo-33100.chyIO4.rst [new file with mode: 0644]