mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-22 08:33:42 +00:00
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
|