mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-21 16:19:21 +00:00
25 lines
461 B
Python
25 lines
461 B
Python
# pylint: disable=R0903
|
|
"""
|
|
Simple test case for an annoying behavior in pylint.
|
|
"""
|
|
|
|
__revision__ = 'pouet'
|
|
|
|
class Test(object):
|
|
"""Smallest test case for reported issue."""
|
|
|
|
def __init__(self):
|
|
self._thing = None
|
|
|
|
@property
|
|
def myattr(self):
|
|
"""Getter for myattr"""
|
|
return self._thing
|
|
|
|
@myattr.setter
|
|
def myattr(self, value):
|
|
"""Setter for myattr."""
|
|
self._thing = value
|
|
|
|
Test().myattr = 'grou'
|