News for hackers. Stuff that matters.
Re:Using attrs for everything in Python by gknoy on Thursday August 25, 2016 @05:20PM (#12362601)
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/6e884fce3edda08a1566823fec37ba...

There are no comments on this comment yet.