MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _manage_removed_state

Method _manage_removed_state

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

Source from the content-addressed store, hash-verified

102 self._modified.add(state)
103
104 def _manage_removed_state(self, state: InstanceState[Any]) -> None:
105 del state._instance_dict
106 if state.modified:
107 self._modified.discard(state)
108
109 def _dirty_states(self) -> Set[InstanceState[Any]]:
110 return self._modified

Callers 2

replaceMethod · 0.80
safe_discardMethod · 0.80

Calls 1

discardMethod · 0.45

Tested by

no test coverage detected