-
-
Notifications
You must be signed in to change notification settings - Fork 410
Closed
Milestone
Description
Since I’m sick of hearing that “PEP 557 is like attrs, but using variable annotations for field declarations”, I’d like to have an option to collect annotated fields that have no attr.ib definition.
ie.
@attr.s(collect_bare=True)
class C:
x: intshould be equivalent to:
@attr.s
class C:
x: int = attr.ib()I’m open to better/shorter names.
Volunteers? @chadrik maybe? :)
Metadata
Metadata
Assignees
Labels
No labels