import attr import attrs @attr.s class AttrS: x = attr.ib(type=int) y = attr.ib(type=str) AttrS() @attr.attrs class AttrAttrs: x = attr.attrib(type=int) y = attr.attrib(type=str) AttrAttrs() @attr.attributes class AttrAttributes: x = attr.attrib(type=int) y = attr.attrib(type=str) AttrAttributes() @attr.dataclass class AttrDataclass: x: int y: str AttrDataclass() @attr.define class AttrDefine: x: int y: str AttrDefine() @attr.mutable class AttrMutable: x: int y: str AttrMutable() @attr.frozen class AttrFrozen: x: int y: str AttrFrozen() @attrs.define class AttrsDefine: x: int y: str AttrsDefine() @attrs.mutable class AttrsMutable: x: int y: str AttrsMutable() @attrs.frozen class AttrsFrozen: x: int y: str AttrsFrozen() @attr.define class AttrsDefineWithAttrsField: x = attrs.field() y = attrs.field() AttrsDefineWithAttrsField()