blob: e89ae169e8909bd612e806405644d9b0a997b253 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# pylint: disable=too-few-public-methods,invalid-name,missing-docstring
# https://github.com/PyCQA/pylint/issues/870
class X:
def __init__(self, val=None):
self._val = val
@property
def val(self):
return self._val
@val.setter
def val(self, value):
self._val = value
if __name__ == '__main__':
print(X([]).val.append)
|