Skip to content

dataclasses.replace raises an exception if InitVar with default argument is not provided. #80651

Description

@GregKuhn
mannequin
BPO 36470
Nosy @ericvsmith, @ilevkivskyi, @ZackerySpytz, @miss-islington, @mierzejk, @anthrotype
PRs
  • bpo-36470: Allow dataclasses.replace() to work InitVar with default values #17441
  • bpo-36470: Allow dataclasses.replace() to handle InitVars with default values #20867
  • [3.9] bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) #25200
  • [3.8] bpo-36470: Allow dataclasses.replace() to handle InitVars with default values (GH-20867) #25201
  • 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 2021-04-05.20:12:35.465>
    created_at = <Date 2019-03-29.11:52:18.656>
    labels = ['interpreter-core', 'type-bug', '3.7']
    title = 'dataclasses.replace raises an exception if InitVar with default argument is not provided.'
    updated_at = <Date 2021-04-05.20:12:35.464>
    user = 'https://bugs.python.org/GregKuhn'

    bugs.python.org fields:

    activity = <Date 2021-04-05.20:12:35.464>
    actor = 'eric.smith'
    assignee = 'eric.smith'
    closed = True
    closed_date = <Date 2021-04-05.20:12:35.465>
    closer = 'eric.smith'
    components = ['Interpreter Core']
    creation = <Date 2019-03-29.11:52:18.656>
    creator = 'Greg Kuhn'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 36470
    keywords = ['patch']
    message_count = 7.0
    messages = ['339105', '339124', '385914', '390252', '390256', '390257', '390259']
    nosy_count = 7.0
    nosy_names = ['eric.smith', 'levkivskyi', 'ZackerySpytz', 'miss-islington', 'Greg Kuhn', 'mierzej', 'anthrotype']
    pr_nums = ['17441', '20867', '25200', '25201']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue36470'
    versions = ['Python 3.7']

    Metadata

    Metadata

    Assignees

    Labels

    3.7 (EOL)end of lifeinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions