Skip to content

functools.WRAPPER_ASSIGNMENTS should include __annotations__ #53060

@terrence

Description

@terrence
mannequin
BPO 8814
Nosy @rhettinger, @pitrou, @merwok, @david-caro
PRs
  • gh-85403: Make wraps retain type annotations #21392
  • Files
  • functools-wrapper-assign-annotations.diff: Patch to add annotations to WRAPPER_ASSIGNMENTS
  • functools-wrapper-assign-annotations.diff: Improved patch with documentation fixed to match.
  • functools-wrapper-assign-annotations.diff: Improved patch with documentation and tests
  • 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/rhettinger'
    closed_at = <Date 2010-08-08.00:57:27.438>
    created_at = <Date 2010-05-24.21:20:57.698>
    labels = ['type-bug', 'library']
    title = 'functools.WRAPPER_ASSIGNMENTS should include __annotations__'
    updated_at = <Date 2020-07-08.09:16:01.461>
    user = 'https://bugs.python.org/terrence'

    bugs.python.org fields:

    activity = <Date 2020-07-08.09:16:01.461>
    actor = 'David Caro'
    assignee = 'rhettinger'
    closed = True
    closed_date = <Date 2010-08-08.00:57:27.438>
    closer = 'rhettinger'
    components = ['Library (Lib)']
    creation = <Date 2010-05-24.21:20:57.698>
    creator = 'terrence'
    dependencies = []
    files = ['17453', '17454', '17694']
    hgrepos = []
    issue_num = 8814
    keywords = ['patch']
    message_count = 13.0
    messages = ['106394', '106396', '106402', '107759', '107974', '112851', '112852', '112856', '112858', '112860', '112874', '112903', '113220']
    nosy_count = 5.0
    nosy_names = ['rhettinger', 'pitrou', 'eric.araujo', 'terrence', 'David Caro']
    pr_nums = ['21392']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'test needed'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue8814'
    versions = ['Python 3.1', 'Python 3.2']

    Metadata

    Metadata

    Assignees

    Labels

    stdlibStandard 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