blob: 773679e3afdd936a04959a76c7e20854e3f0c81e [file]
class Foo(object):
def __getitem__(self, item):
return item
Foo<warning descr="Class 'type' does not define '__getitem__', so the '[]' operator cannot be used on its instances">[</warning>0]