Skip to content

get_type_hints does not provide localns for classes #87070

Description

@pbryan
mannequin
BPO 42904
Nosy @gvanrossum, @larryhastings, @pbryan, @Fidget-Spinner
PRs
  • bpo-42904: Fix get_type_hints for class local namespaces #24201
  • bpo-42904: Change search order of typing.get_type_hints eval #25632
  • 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 = <Date 2021-04-13.09:48:40.365>
    created_at = <Date 2021-01-12.05:00:15.225>
    labels = ['type-bug', 'library', '3.10']
    title = 'get_type_hints does not provide localns for classes'
    updated_at = <Date 2021-04-29.23:48:45.413>
    user = 'https://github.com/pbryan'

    bugs.python.org fields:

    activity = <Date 2021-04-29.23:48:45.413>
    actor = 'kj'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-04-13.09:48:40.365>
    closer = 'kj'
    components = ['Library (Lib)']
    creation = <Date 2021-01-12.05:00:15.225>
    creator = 'pbryan'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 42904
    keywords = ['patch']
    message_count = 12.0
    messages = ['384885', '384887', '384888', '384925', '390871', '390872', '390945', '391955', '392317', '392321', '392351', '392364']
    nosy_count = 4.0
    nosy_names = ['gvanrossum', 'larry', 'pbryan', 'kj']
    pr_nums = ['24201', '25632']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue42904'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixesstdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions