mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-22 00:24:37 +00:00
18 lines
389 B
Python
18 lines
389 B
Python
"""Test that valid class attribute doesn't trigger errors"""
|
|
__revision__ = 'sponge bob'
|
|
|
|
class Clazz(object):
|
|
"dummy class"
|
|
|
|
def __init__(self):
|
|
self.topic = 5
|
|
self._data = 45
|
|
|
|
def change_type(self, new_class):
|
|
"""Change type"""
|
|
self.__class__ = new_class
|
|
|
|
def do_nothing(self):
|
|
"I do nothing useful"
|
|
return self.topic + 56
|