Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
inspections
/
PyUnresolvedReferencesInspection
/
MetaClassMembersInStubs
/
a.py
blob: 2130e2949a92073b74625dbb738405435e55f6ef [
file
]
from
b
import
Generic
class
C
(
Generic
[
'foo'
]):
pass
print
(
C
[
'bar'
])
c
=
C
()
print
(
c
<
warning descr
=
"Class 'C' does not define '__getitem__', so the '[]' operator cannot be used on its instances"
>[</
warning
>
'baz'
])