You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2020-08-06.12:47:49.862>labels= ['type-feature', '3.10']
title='Create public API for typing._eval_type'updated_at=<Date2020-08-06.14:29:11.613>user='https://github.com/Dominik1123'
In this python-ideas thread it was suggested to create a public API for typing._eval_type in order to be able to create custom versions of get_type_hints. Specifically a version that allows to specify an upper boundary in the MRO when retrieving type hints for a class object.
The public API should use None as defaults for globalns and localns and not expose the recursive_guard parameter.
Activity
Dominik1123 commentedon Aug 6, 2020
In this python-ideas thread it was suggested to create a public API for
typing._eval_typein order to be able to create custom versions ofget_type_hints. Specifically a version that allows to specify an upper boundary in the MRO when retrieving type hints for a class object.The public API should use
Noneas defaults forglobalnsandlocalnsand not expose therecursive_guardparameter.pythongh-85668: Add `typing.evaluate_type()` function
pythongh-85668: Add `typing.evaluate_type()` function