MCPcopy Create free account
hub / github.com/ipython/ipython / __getitem__

Method __getitem__

IPython/core/tests/test_completer.py:122–123  ·  view source on GitHub ↗
(cls, item)

Source from the content-addressed store, hash-verified

120
121class NamedInstanceMetaclass(type):
122 def __getitem__(cls, item):
123 return cls.get_instance(item)
124
125
126class NamedInstanceClass(metaclass=NamedInstanceMetaclass):

Callers

nothing calls this directly

Calls 1

get_instanceMethod · 0.80

Tested by

no test coverage detected