[issue38756] Add generic versions of weakref types to typing module
Nils Kattenbeck
report at bugs.python.org
Sun Nov 10 06:30:45 EST 2019
Nils Kattenbeck <nilskemail at gmail.com> added the comment:
Okay nevermind, after looking in the PEP again and inspecting the __annotations__ property I learned that annotations are never evaluated and just saved as a string when using said future statement.
However this may still be relevant as typing.get_type_hints will still fail. For my use case however this is sufficient.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38756>
_______________________________________
More information about the Python-bugs-list
mailing list