MCPcopy
hub / github.com/ApeWorX/web3.py / pop

Method pop

web3/utils/caching.py:59–63  ·  view source on GitHub ↗
(self, key: str)

Source from the content-addressed store, hash-verified

57 return list(self._data.items())
58
59 def pop(self, key: str) -> Optional[Any]:
60 if key not in self._data:
61 return None
62
63 return self._data.pop(key)
64
65 def popitem(self, last: bool = True) -> Tuple[str, Any]:
66 return self._data.popitem(last=last)

Calls

no outgoing calls