diff options
Diffstat (limited to 'test/input/func_newstyle_property.py')
-rw-r--r-- | test/input/func_newstyle_property.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/input/func_newstyle_property.py b/test/input/func_newstyle_property.py new file mode 100644 index 0000000..cdce8fa --- /dev/null +++ b/test/input/func_newstyle_property.py @@ -0,0 +1,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 |