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.
18 lines
293 B
Python
18 lines
293 B
Python
# pylint: disable-msg=R0903
|
|
"""test __slots__ on old style class"""
|
|
|
|
__revision__ = 1
|
|
|
|
class OkOk(object):
|
|
"""correct usage"""
|
|
__slots__ = ('a', 'b')
|
|
|
|
class HaNonNonNon:
|
|
"""bad usage"""
|
|
__slots__ = ('a', 'b')
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
__slots__ = 'hop' # pfff
|