Skip to content

Create public API for typing._eval_type #85668

Description

@Dominik1123
BPO 41496
Nosy @gvanrossum, @ilevkivskyi, @Dominik1123
PRs
  • gh-85668: Create public API for typing._eval_type #21753
  • 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 = None
    closed_at = None
    created_at = <Date 2020-08-06.12:47:49.862>
    labels = ['type-feature', '3.10']
    title = 'Create public API for typing._eval_type'
    updated_at = <Date 2020-08-06.14:29:11.613>
    user = 'https://github.com/Dominik1123'

    bugs.python.org fields:

    activity = <Date 2020-08-06.14:29:11.613>
    actor = 'Dominik V.'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2020-08-06.12:47:49.862>
    creator = 'Dominik V.'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41496
    keywords = ['patch']
    message_count = 1.0
    messages = ['374933']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'levkivskyi', 'Dominik V.']
    pr_nums = ['21753']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue41496'
    versions = ['Python 3.10']

    Linked PRs

    Activity

    1. Dominik1123 commented on Aug 6, 2020

      Dominik1123mannequin
      MannequinAuthor

      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.

    2. transferred this issue fromon Apr 10, 2022
    3. added
      stdlibStandard Library Python modules in the Lib/ directory
      on May 24, 2026
    4. added 2 commits that reference this issue on May 25, 2026
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      stdlibStandard Library Python modules in the Lib/ directorytopic-typingtype-featureA feature request or enhancement

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions