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.

Title: Create public API for typing._eval_type
Type: enhancement Stage: patch review
Components: Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Dominik V., gvanrossum, levkivskyi
Priority: normal Keywords: patch

Created on 2020-08-06 12:47 by Dominik V., last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 21753 open Dominik V., 2020-08-06 14:29
Messages (1)
msg374933 - (view) Author: Dominik Vilsmeier (Dominik V.) * Date: 2020-08-06 12:47
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.
Date User Action Args
2022-04-11 14:59:34adminsetgithub: 85668
2020-08-06 14:29:11Dominik V.setkeywords: + patch
stage: patch review
pull_requests: + pull_request20898
2020-08-06 12:51:33xtreaksetnosy: + gvanrossum, levkivskyi
2020-08-06 12:47:49Dominik V.create