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