Skip to content

Add kwarg-only option to dataclass #77310

@alanhdu

Description

@alanhdu
mannequin
BPO 33129
Nosy @rhettinger, @ericvsmith, @pmp-p, @pbryan, @ryanhiebert, @alanhdu, @tirkarthi, @wyz23x2, @wanderrful, @Conchylicultor
PRs
  • bpo-33129: Add kwarg-only option to dataclass #6238
  • bpo-33129: Add kwarg support for dataclass' generated init method #19206
  • Superseder
  • bpo-43532: Add keyword-only fields to dataclasses
  • 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-03-17.18:21:09.137>
    created_at = <Date 2018-03-23.23:33:17.883>
    labels = ['3.8', 'type-feature', 'library', '3.9']
    title = 'Add kwarg-only option to dataclass'
    updated_at = <Date 2021-03-17.18:21:09.136>
    user = 'https://github.com/alanhdu'

    bugs.python.org fields:

    activity = <Date 2021-03-17.18:21:09.136>
    actor = 'eric.smith'
    assignee = 'eric.smith'
    closed = True
    closed_date = <Date 2021-03-17.18:21:09.137>
    closer = 'eric.smith'
    components = ['Library (Lib)']
    creation = <Date 2018-03-23.23:33:17.883>
    creator = 'alan_du'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 33129
    keywords = ['patch']
    message_count = 14.0
    messages = ['314341', '314342', '314343', '314346', '316784', '321811', '322051', '322455', '365218', '374108', '375167', '380746', '383131', '388953']
    nosy_count = 12.0
    nosy_names = ['rhettinger', 'eric.smith', 'pmpp', 'pbryan', 'ryanhiebert', 'alan_du', 'xtreak', 'jimbo1qaz_', 'wyz23x2', 'wanderrful', 'conchylicultor', 'Prakhar Goel']
    pr_nums = ['6238', '19206']
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '43532'
    type = 'enhancement'
    url = 'https://bugs.python.org/issue33129'
    versions = ['Python 3.8', 'Python 3.9']

    Metadata

    Metadata

    Assignees

    Labels

    3.8 (EOL)end of life3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions