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

Method __getitem__

traitlets/config/loader.py:767–771  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

765 return False
766
767 def __getitem__(self, key: str) -> t.Any:
768 if key in self:
769 return super().__getitem__(key)
770 else:
771 raise KeyError(key)
772
773 def get(self, key: str, default: t.Any = None) -> t.Any:
774 try:

Callers

nothing calls this directly

Calls 1

__getitem__Method · 0.45

Tested by

no test coverage detected