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

Eric V. Smith report at bugs.python.org
Thu Jul 22 21:48:06 EDT 2021


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

It can’t be resolved in fields(): it is still undefined when the fields are created. 

I think the best solution is PEP 649.

----------

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


More information about the Python-bugs-list mailing list