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