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