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

Method clear

dash/_patch.py:141–143  ·  view source on GitHub ↗

Remove all items in a list

(self)

Source from the content-addressed store, hash-verified

139 )
140
141 def clear(self) -> None:
142 """Remove all items in a list"""
143 self._operations.append(_operation("Clear", self._location))
144
145 def reverse(self) -> None:
146 """Reversal of the order of items in a list"""

Callers 11

test_pat017_patch_clearFunction · 0.95
_setup_serverMethod · 0.45
csp_hashesMethod · 0.45
init_pages_stateFunction · 0.45
on_clearFunction · 0.45
_reset_dash_app_stateFunction · 0.45
_setup_mcpFunction · 0.45

Calls 2

_operationFunction · 0.85
appendMethod · 0.45

Tested by 6

test_pat017_patch_clearFunction · 0.76
init_pages_stateFunction · 0.36
on_clearFunction · 0.36
_reset_dash_app_stateFunction · 0.36
_setup_mcpFunction · 0.36