Remove an object from the store. This method is idempotent - removing a non-existent object ID does not raise an error. Args: oid: The object ID to remove Example: >>> store.remove(456) >>> store.
(self, oid: int)
| 107 | return oid in self._objects |
| 108 | |
| 109 | def remove(self, oid: int) -> None: |
| 110 | """ |
| 111 | Remove an object from the store. |
| 112 | |
| 113 | This method is idempotent - removing a non-existent object ID |
| 114 | does not raise an error. |
| 115 | |
| 116 | Args: |
| 117 | oid: The object ID to remove |
| 118 | |
| 119 | Example: |
| 120 | >>> store.remove(456) |
| 121 | >>> store.exists(456) |
| 122 | False |
| 123 | """ |
| 124 | if oid in self._objects: |
| 125 | del self._objects[oid] |
| 126 | |
| 127 | def clear(self) -> None: |
| 128 | """ |
no outgoing calls