Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
inspections
/
PyDunderSlotsInspection
/
classAttrAssignmentAndOwnWithDictAndInheritedWithAttrSlots.py
blob: f26130ca3d2b0318f15293eaa593724f31029900 [
file
]
class
B
(
object
):
__slots__
=
[
'attr'
,
'b'
]
class
C
(
B
):
attr
=
'baz'
__slots__
=
[
'foo'
,
'bar'
,
'__dict__'
]
C
.
attr
=
'spam'
print
(
C
.
attr
)
c
=
C
()
c
.
attr
=
'spam'
print
(
c
.
attr
)