MCPcopy Index your code
hub / github.com/plotly/dash / __getitem__

Method __getitem__

dash/_patch.py:48–50  ·  view source on GitHub ↗
(self, item: _KeyType)

Source from the content-addressed store, hash-verified

46 vars(self).update(state)
47
48 def __getitem__(self, item: _KeyType) -> "Patch":
49 validate_slice(item)
50 return Patch(location=self._location + [item], parent=self)
51
52 def __getattr__(self, item: _KeyType) -> "Patch":
53 if item == "tolist":

Callers 1

__getattr__Method · 0.95

Calls 2

validate_sliceFunction · 0.85
PatchClass · 0.85

Tested by

no test coverage detected