mercurial/thirdparty/attr/_make.py
changeset 41564 a5493a251ad3
parent 34397 765eb17a7eb8
child 41833 89f01ea906ae
equal deleted inserted replaced
41563:13f7a6a4f0db 41564:a5493a251ad3
    54 
    54 
    55 
    55 
    56 def attr(default=NOTHING, validator=None,
    56 def attr(default=NOTHING, validator=None,
    57          repr=True, cmp=True, hash=None, init=True,
    57          repr=True, cmp=True, hash=None, init=True,
    58          convert=None, metadata={}):
    58          convert=None, metadata={}):
    59     """
    59     r"""
    60     Create a new attribute on a class.
    60     Create a new attribute on a class.
    61 
    61 
    62     ..  warning::
    62     ..  warning::
    63 
    63 
    64         Does *not* do anything unless the class is also decorated with
    64         Does *not* do anything unless the class is also decorated with