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

Method discard

lib/sqlalchemy/orm/identity.py:276–277  ·  view source on GitHub ↗
(self, state: InstanceState[Any])

Source from the content-addressed store, hash-verified

274 self._dict.pop(key, None)
275
276 def discard(self, state: InstanceState[Any]) -> None:
277 self.safe_discard(state)
278
279 def safe_discard(self, state: InstanceState[Any]) -> None:
280 key = state.key

Callers 10

_resetMethod · 0.45
_expireMethod · 0.45
_commit_all_statesMethod · 0.45
_manage_removed_stateMethod · 0.45
_remove_itemMethod · 0.45
_remove_itemMethod · 0.45
_dispose_registriesFunction · 0.45
__new__Method · 0.45
difference_updateFunction · 0.45
__isub__Function · 0.45

Calls 1

safe_discardMethod · 0.95

Tested by

no test coverage detected