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

Method __getattr__

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

Source from the content-addressed store, hash-verified

50 return Patch(location=self._location + [item], parent=self)
51
52 def __getattr__(self, item: _KeyType) -> "Patch":
53 if item == "tolist":
54 # to_json fix
55 raise AttributeError
56 if item == "_location":
57 return self._location # type: ignore
58 if item == "_operations":
59 return self._operations # type: ignore
60 return self.__getitem__(item)
61
62 def __setattr__(self, key: _KeyType, value: Any):
63 if key in ("_location", "_operations"):

Callers

nothing calls this directly

Calls 1

__getitem__Method · 0.95

Tested by

no test coverage detected