[New-bugs-announce] [issue41496] Create public API for typing._eval_type
Dominik V.
report at bugs.python.org
Thu Aug 6 08:47:49 EDT 2020
New submission from Dominik V. <dominik.vilsmeier1123 at gmail.com>:
In this [python-ideas thread](https://mail.python.org/archives/list/python-ideas@python.org/thread/T6K4DWENPM7LYXSDVYQYDVFEVBMA5K3L/) 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.
----------
messages: 374933
nosy: Dominik V.
priority: normal
severity: normal
status: open
title: Create public API for typing._eval_type
type: enhancement
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41496>
_______________________________________
More information about the New-bugs-announce
mailing list