Skip to content

typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar #88962

@tk0miya

Description

@tk0miya
mannequin
BPO 44799
Nosy @ericvsmith, @JelleZijlstra, @uriyyo, @tk0miya
PRs
  • bpo-44799: Fix InitVar resolving using get_type_hints #27553
  • 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 = 'https://github.com/ericvsmith'
    closed_at = <Date 2022-03-12.18:00:32.186>
    created_at = <Date 2021-07-31.17:19:44.535>
    labels = ['library', '3.9', '3.10']
    title = 'typing.get_type_hints() raises TypeError for a variable annotated by dataclasses.InitVar'
    updated_at = <Date 2022-03-12.18:00:32.185>
    user = 'https://github.com/tk0miya'

    bugs.python.org fields:

    activity = <Date 2022-03-12.18:00:32.185>
    actor = 'JelleZijlstra'
    assignee = 'eric.smith'
    closed = True
    closed_date = <Date 2022-03-12.18:00:32.186>
    closer = 'JelleZijlstra'
    components = ['Library (Lib)']
    creation = <Date 2021-07-31.17:19:44.535>
    creator = 'tkomiya'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 44799
    keywords = ['patch']
    message_count = 4.0
    messages = ['398650', '411228', '414969', '414974']
    nosy_count = 4.0
    nosy_names = ['eric.smith', 'JelleZijlstra', 'uriyyo', 'tkomiya']
    pr_nums = ['27553']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue44799'
    versions = ['Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixes3.9 (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