Files
2025-12-04 14:02:23 +00:00

15 lines
345 B
Python

class MyClass(object):
def __init__(self, value):
self.x = value
@property
def x(self):
return self._x
@x.setter
def x(self, value):
_x = 42 # unrelated assignment
def function(self):
<weak_warning descr="Instance attribute '_x' defined outside `__init__`">self._x</weak_warning> = 42