[issue36643] Forward reference is not resolved by dataclasses.fields()

Eric V. Smith report at bugs.python.org
Sat Jul 24 07:41:27 EDT 2021


Eric V. Smith <eric at trueblade.com> added the comment:

Also, when dataclasses was originally written, it deliberately did not import typing, for performance reasons. I don't know if PEP 560 (I think) improved performance enough to make a difference. But adding this dependency needs to be looked at.

But if we are going to import typing, there are other changes that I'd like to make, like improving the ClassVar stuff.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36643>
_______________________________________


More information about the Python-bugs-list mailing list