blob: 60118bbf6ea92783d57c86592acd6592befb1f11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# pylint: disable=R0903, useless-object-inheritance
"""
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'
|