Skip to content

typing.get_type_hints generates KeyError #85687

@efahl

Description

@efahl
mannequin
BPO 41515
Nosy @gvanrossum, @vstinner, @ilevkivskyi, @efahl, @tirkarthi, @will-ca
PRs
  • bpo-41515: prevent get_type_hints from raising KeyError #21816
  • bpo-41515: Fix KeyError raised in get_type_hints #25352
  • bpo-41515: Fix assert in test which throws SyntaxWarning. #25379
  • bpo-44468: Never skip base classes in typing.get_type_hints(), even with invalid .__module__. #26862
  • 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.17:15:45.293>
    created_at = <Date 2020-08-10.13:43:58.712>
    labels = ['3.8', 'library']
    title = 'typing.get_type_hints generates KeyError'
    updated_at = <Date 2021-06-23.17:25:50.090>
    user = 'https://github.com/efahl'

    bugs.python.org fields:

    activity = <Date 2021-06-23.17:25:50.090>
    actor = 'WCA'
    assignee = 'none'
    closed = True
    closed_date = <Date 2021-04-13.17:15:45.293>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2020-08-10.13:43:58.712>
    creator = 'eric.fahlgren'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41515
    keywords = ['patch']
    message_count = 9.0
    messages = ['375111', '375127', '390819', '390882', '390891', '390892', '390893', '390919', '390979']
    nosy_count = 7.0
    nosy_names = ['gvanrossum', 'vstinner', 'python-dev', 'levkivskyi', 'eric.fahlgren', 'xtreak', 'WCA']
    pr_nums = ['21816', '25352', '25379', '26862']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue41515'
    versions = ['Python 3.8']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions