Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
inspections
/
PyDunderSlotsInspection
/
writeToInheritedProperty.py
blob: 5b848b42a71bb5f2bdbedbdf1adc99af3bf927ff [
file
]
class
A
(
object
):
__slots__
=
(
'_y'
,)
def
__init__
(
self
):
self
.
_y
=
1
@property
def
x
(
self
):
return
self
.
_y
@x
.
setter
def
x
(
self
,
value
):
self
.
_y
=
value
class
B
(
A
):
__slots__
=
(
'_x'
,)
B
().
x
=
2