Message370037
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. |
|
Date |
User |
Action |
Args |
2020-05-26 23:13:14 | eric.smith | set | recipients:
+ eric.smith, gvanrossum, barry, brett.cannon, vstinner, lukasz.langa, levkivskyi, BTaskaya |
2020-05-26 23:13:14 | eric.smith | set | messageid: <1590534794.44.0.744150497815.issue38605@roundup.psfhosted.org> |
2020-05-26 23:13:14 | eric.smith | link | issue38605 messages |
2020-05-26 23:13:13 | eric.smith | create | |
|