Sergei Lebedev <sergei.a.lebe...@gmail.com> added the comment:

I understand that this is a side-effect of having a default value, but I was 
hoping we could delattr InitVar's in @dataclass. 

I'm not aware of this causing problems, but it does feel a bit unsatisfying 
that InitVar's with defaults are kept in the class namespace. 

Do you see what could go wrong if we delete them?

----------

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

Reply via email to