Skip to content

typing.get_type_hints not working with forward-declaration and decorated functions #82019

@netbnd

Description

@netbnd
mannequin
BPO 37838
Nosy @gvanrossum, @ilevkivskyi, @miss-islington, @nanjekyejoannah, @benedwards14
PRs
  • bpo-37838: get_type_hints for wrapped functions with forward reference #17126
  • [3.8] bpo-37838: get_type_hints for wrapped functions with forward reference (GH-17126) #17324
  • [3.7] bpo-37838: get_type_hints for wrapped functions with forward reference (GH-17126) #17325
  • Files
  • typing_check_wrapped.zip: Sample code with working and non working cases is attached to reproduce the issue.
  • 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 2019-11-21.17:47:38.989>
    created_at = <Date 2019-08-13.10:42:59.139>
    labels = ['3.7', 'easy', 'type-bug', 'library']
    title = 'typing.get_type_hints not working with forward-declaration and decorated functions'
    updated_at = <Date 2019-11-21.17:47:38.988>
    user = 'https://bugs.python.org/netbnd'

    bugs.python.org fields:

    activity = <Date 2019-11-21.17:47:38.988>
    actor = 'levkivskyi'
    assignee = 'none'
    closed = True
    closed_date = <Date 2019-11-21.17:47:38.989>
    closer = 'levkivskyi'
    components = ['Library (Lib)']
    creation = <Date 2019-08-13.10:42:59.139>
    creator = 'netbnd'
    dependencies = []
    files = ['48540']
    hgrepos = []
    issue_num = 37838
    keywords = ['patch', 'newcomer friendly']
    message_count = 16.0
    messages = ['349542', '349565', '349580', '349581', '349594', '355477', '355501', '355502', '355585', '355643', '355747', '356390', '356470', '357184', '357187', '357188']
    nosy_count = 6.0
    nosy_names = ['gvanrossum', 'levkivskyi', 'miss-islington', 'nanjekyejoannah', 'netbnd', 'benedwards14']
    pr_nums = ['17126', '17324', '17325']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue37838'
    versions = ['Python 3.6', 'Python 3.7']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.7 (EOL)end of lifeeasystdlibStandard 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