New submission from Dominik V. <[email protected]>:
In this [python-ideas thread](https://mail.python.org/archives/list/[email protected]/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 <[email protected]> <https://bugs.python.org/issue41496> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
