1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
# pylint: disable-msg=R0903 """test property on old style class""" __revision__ = 1 def getter(self): """interesting""" return self class OkOk(object): """correct usage""" method = property(getter, doc='hop') class HaNonNonNon: """bad usage""" method = property(getter, doc='hop') def __init__(self): pass