MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _dispose

Method _dispose

lib/sqlalchemy/orm/state.py:511–513  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

509 self.session_id = self._strong_obj = None
510
511 def _dispose(self) -> None:
512 # used by the test suite, apparently
513 self._detach()
514
515 def _force_dereference(self) -> None:
516 """Force this InstanceState to act as though its weakref has

Callers 1

_set_imap_in_disposalMethod · 0.80

Calls 1

_detachMethod · 0.95

Tested by 1

_set_imap_in_disposalMethod · 0.64