mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
11 lines
221 B
Python
11 lines
221 B
Python
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'])
|