Skip to content

Add keyword-only fields to dataclasses #87698

Closed
@ericvsmith

Description

@ericvsmith
BPO 43532
Nosy @rhettinger, @ericvsmith, @ryanhiebert, @henryiii, @miss-islington, @tirkarthi, @EpicWink, @jack1142, @kamilturek, @cdce8p, @finite-state-machine
PRs
  • bpo-43532: Add kw_only to dataclass() and field(), and add KW_ONLY marker. #24909
  • bpo-43532: Add keyword-only fields to dataclasses. #25608
  • bpo-43532: add version added to KW_ONLY #31235
  • [3.10] bpo-43532: add version added to KW_ONLY (GH-31235) #31236
  • 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-02-09.21:49:39.659>
    created_at = <Date 2021-03-17.17:39:21.912>
    labels = ['type-feature', 'library', '3.10']
    title = 'Add keyword-only fields to dataclasses'
    updated_at = <Date 2022-02-09.21:49:39.658>
    user = 'https://github.com/ericvsmith'

    bugs.python.org fields:

    activity = <Date 2022-02-09.21:49:39.658>
    actor = 'eric.smith'
    assignee = 'eric.smith'
    closed = True
    closed_date = <Date 2022-02-09.21:49:39.659>
    closer = 'eric.smith'
    components = ['Library (Lib)']
    creation = <Date 2021-03-17.17:39:21.912>
    creator = 'eric.smith'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 43532
    keywords = ['patch']
    message_count = 11.0
    messages = ['388949', '388951', '388984', '391920', '392018', '392115', '398856', '404609', '412943', '412944', '412946']
    nosy_count = 11.0
    nosy_names = ['rhettinger', 'eric.smith', 'ryanhiebert', 'Henry Schreiner', 'miss-islington', 'xtreak', 'Epic_Wink', 'jack1142', 'kamilturek', 'cdce8p', 'finite-state-machine']
    pr_nums = ['24909', '25608', '31235', '31236']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue43532'
    versions = ['Python 3.10']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixesstdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions