mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-07 15:35:40 +07:00
GitOrigin-RevId: fa706b67efd8d3caafc15fa101514dd7cf1721b1
15 lines
345 B
Python
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
|