Eric V. Smith <e...@trueblade.com> added the comment:

To my knowledge, dataclasses works with `from __future__ import annotations`. 
If there are specific examples of problems, I'd like to hear about it: please 
open a separate issue.

There is a hack (discussed at PyCon 2018 with all of the relevant players) 
where it avoids importing typing to look at typing.ClassVar, but I think that 
code is all correct. Maybe I should just bite the bullet and import typing, 
since I believe importing it is faster than it used to be.

----------

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

Reply via email to