Skip to content

slots=True do not play nice with __init_subclass__ #269

Closed
@malinoff

Description

@malinoff

A class annotated with attr.s(slots=True) can't call super().__init__subclass__ within its own __init_subclass__ method - a TypeError: super(type, obj): obj must be an instance or subtype of type is raised.

Reproducible example (tested on 16.3.0, 17.2.0 and f7f53d4) is here: https://repl.it/Mmkb/0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions