MCPcopy Create free account
hub / github.com/cdgriffith/Box / clear

Method clear

box/box.py:775–779  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

773 return item
774
775 def clear(self):
776 if self._box_config["frozen_box"]:
777 raise BoxError("Box is frozen")
778 super().clear()
779 self._box_config["__safe_keys"].clear()
780
781 def popitem(self):
782 if self._box_config["frozen_box"]:

Callers 2

test_frozenMethod · 0.95
test_clearMethod · 0.95

Calls 1

BoxErrorClass · 0.90

Tested by 2

test_frozenMethod · 0.76
test_clearMethod · 0.76