MCPcopy
hub / github.com/CadQuery/cadquery / __delitem__

Method __delitem__

cadquery/utils.py:167–179  ·  view source on GitHub ↗
(self, k: K)

Source from the content-addressed store, hash-verified

165 self._inv.clear()
166
167 def __delitem__(self, k: K):
168
169 v = self.data.pop(k)
170
171 # if needed in one-many cases
172 if v in self._inv:
173 # remove the inverse mapping
174 inv = self._inv[v]
175 inv.remove(k)
176
177 # if needed remove the item completely
178 if not inv:
179 del self._inv[v]
180
181
182def instance_of(obj: object, *args: object) -> bool:

Callers

nothing calls this directly

Calls 2

popMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected