MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / unpickle

Method unpickle

lib/sqlalchemy/orm/events.py:621–633  ·  view source on GitHub ↗

Receive an object instance after its associated state has been unpickled. :param target: the mapped instance. If the event is configured with ``raw=True``, this will instead be the :class:`.InstanceState` state-management object associated with the instan

(self, target: _O, state_dict: _InstanceDict)

Source from the content-addressed store, hash-verified

619 """
620
621 def unpickle(self, target: _O, state_dict: _InstanceDict) -> None:
622 """Receive an object instance after its associated state has
623 been unpickled.
624
625 :param target: the mapped instance. If
626 the event is configured with ``raw=True``, this will
627 instead be the :class:`.InstanceState` state-management
628 object associated with the instance.
629 :param state_dict: the dictionary sent to
630 :class:`.InstanceState.__setstate__`, containing the state
631 dictionary which was pickled.
632
633 """
634
635
636class _EventsHold(event.RefCollection[_ET]):

Callers 1

__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected