mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 16:19:21 +00:00
18 lines
289 B
Python
18 lines
289 B
Python
# pylint: disable=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
|