MCPcopy
hub / github.com/Textualize/rich / __getitem__

Method __getitem__

rich/layout.py:216–220  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

214 return None
215
216 def __getitem__(self, name: str) -> "Layout":
217 layout = self.get(name)
218 if layout is None:
219 raise KeyError(f"No layout with name {name!r}")
220 return layout
221
222 @property
223 def tree(self) -> "Tree":

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected