Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
121
class
NamedInstanceMetaclass(type):
122
def
__getitem__(cls, item):
123
return
cls.get_instance(item)
124
125
126
class
NamedInstanceClass(metaclass=NamedInstanceMetaclass):
Callers
nothing calls this directly
Calls
1
get_instance
Method · 0.80
Tested by
no test coverage detected