This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author FFY00
Recipients FFY00, McSinyx, docs@python
Date 2020-05-03.00:15:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
typing.get_type_hints can be used for this, it resolves the annotation string.

>>> def foo(bar: 'int') -> 'bool': pass
...
>>> typing.get_type_hints(foo)
{'bar': <class 'int'>, 'return': <class 'bool'>}
History
Date User Action Args
2020-05-03 00:15:54FFY00setrecipients: + FFY00, docs@python, McSinyx
2020-05-03 00:15:54FFY00setmessageid: <[email protected]>
2020-05-03 00:15:54FFY00linkissue39990 messages
2020-05-03 00:15:54FFY00create