mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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__.
This commit is contained in:
parent
4573820d2a
commit
7389fd935c
3 changed files with 47 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
Dataclasses: If a field has a default value that's a MemberDescriptorType,
|
||||
then it's from that field being in __slots__, not an actual default value.
|
Loading…
Add table
Add a link
Reference in a new issue