mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-22 00:24:37 +00:00
4becf6f9e5
forget the past.
20 lines
355 B
Python
20 lines
355 B
Python
# 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
|