[issue33453] from __future__ import annotations breaks dataclasses ClassVar and InitVar handling
INADA Naoki
report at bugs.python.org
Fri May 11 07:55:49 EDT 2018
INADA Naoki <songofacandy at gmail.com> added the comment:
> We can't break the API at this point in the release cycle.
We hadn't release RC, and we hadn't documented dataclass module yet.
How about making "dataclass" module as porvisional state?
I think we've learned lesson that we shouldn't use typing in modules other than typing...
> But I am open to what string prefixes we should allow.
If it is really needed, I think we should only allow "typing.ClassVar".
All other prefixes seems ambiguous.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33453>
_______________________________________
More information about the Python-bugs-list
mailing list