MCPcopy
hub / github.com/plotly/dash / extend

Method extend

dash/_patch.py:149–153  ·  view source on GitHub ↗

Add all the items to the end of a list

(self, item: Union[list, tuple])

Source from the content-addressed store, hash-verified

147 self._operations.append(_operation("Reverse", self._location))
148
149 def extend(self, item: Union[list, tuple]) -> None:
150 """Add all the items to the end of a list"""
151 if not isinstance(item, (list, tuple)):
152 raise TypeError(f"{item} should be a list or tuple")
153 self._operations.append(_operation("Extend", self._location, value=item))
154
155 def remove(self, item: Any) -> None:
156 """filter the item out of a list on the frontend"""

Calls 2

_operationFunction · 0.85
appendMethod · 0.45