Adrian Stachlewski <adrian.stachlew...@gmail.com> added the comment:

There's also another major problem. Because Base.x has value, __init__ is not 
prepared correctly (member_descriptor is passed as default). 

@dataclass
class Base:
    __slots__ = ('x',)
    x: Any

Base()  # No TypeError exception

Fixing this should be quite easy, if you want I can prepare PR.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33100>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to