Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
inspections
/
PyDunderSlotsInspection
/
classAttrAssignmentAndSlotsWithDict.py
blob: 82d160d099e7cdfa53c5e92bb63f8a15155962b1 [
file
]
class
Foo
(
object
):
attr
=
'baz'
__slots__
=
[
'foo'
,
'bar'
,
'__dict__'
]
Foo
.
attr
=
'spam'
print
(
Foo
.
attr
)
foo
=
Foo
()
foo
.
attr
=
'spam'
print
(
foo
.
attr
)