MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / discard

Method discard

lib/sqlalchemy/util/_collections_cy.py:302–306  ·  view source on GitHub ↗
(self, value, /)

Source from the content-addressed store, hash-verified

300 del self._members[_get_id(value)]
301
302 def discard(self, value, /) -> None:
303 try:
304 self.remove(value)
305 except KeyError:
306 pass
307
308 def pop(self) -> Any:
309 pair: Tuple[Any, Any]

Callers

nothing calls this directly

Calls 1

removeMethod · 0.95

Tested by

no test coverage detected