3 ms·
If you use `import ... as ...`, you can rename them to nicer names (full gist at [0]): from attr import ( s as AttributedModel, ib as attri
by gknoy 10y ago
If you use `import ... as ...`, you can rename them to nicer names (full gist at [0]):
from attr import (
s as AttributedModel,
ib as attribute,
)
@AttributedModel
class Bar(object):
x = attribute()
y = attribute()
0: https://gist.github.com/gknoy/6e884fce3edda08a1566823fec37ba70 https://gist.github.com/gknoy/6e884fce3edda08a1566823fec37ba...