Skip to content

kw_only=True in class cannot be overridden by attributes #481

Open
@euresti

Description

@euresti

Mostly wondering if this is expected/desired:

import attr
@attr.s(kw_only=True)
class A:
    a = attr.ib(kw_only=False)

A(1)  # Error

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions