Skip to content

dataclass(slots=True) does not account for slots in base classes #90540

@ariebovenberg

Description

@ariebovenberg
BPO 46382
Nosy @ericvsmith, @hynek, @serhiy-storchaka, @TeamSpen210, @sobolevn, @AlexWaygood, @ariebovenberg
PRs
  • bpo-46382 dataclass(slots=True) now takes inherited slots into account #31980
  • 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-03-19.21:01:51.297>
    created_at = <Date 2022-01-14.19:31:43.335>
    labels = ['type-bug', 'library', '3.10', '3.11']
    title = 'dataclass(slots=True) does not account for slots in base classes'
    updated_at = <Date 2022-03-19.21:01:51.297>
    user = 'https://github.com/ariebovenberg'

    bugs.python.org fields:

    activity = <Date 2022-03-19.21:01:51.297>
    actor = 'eric.smith'
    assignee = 'eric.smith'
    closed = True
    closed_date = <Date 2022-03-19.21:01:51.297>
    closer = 'eric.smith'
    components = ['Library (Lib)']
    creation = <Date 2022-01-14.19:31:43.335>
    creator = 'ariebovenberg'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 46382
    keywords = ['patch']
    message_count = 19.0
    messages = ['410591', '410601', '410628', '410630', '410641', '410642', '410820', '410841', '411010', '415393', '415399', '415400', '415401', '415419', '415453', '415471', '415474', '415570', '415571']
    nosy_count = 7.0
    nosy_names = ['eric.smith', 'hynek', 'serhiy.storchaka', 'Spencer Brown', 'sobolevn', 'AlexWaygood', 'ariebovenberg']
    pr_nums = ['31980']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue46382'
    versions = ['Python 3.10', 'Python 3.11']

    Metadata

    Metadata

    Assignees

    Labels

    3.10only security fixes3.11only security fixesstdlibStandard 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