MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / unpickle

Method unpickle

lib/sqlalchemy/orm/events.py:601–613  ·  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

599 """
600
601 def unpickle(self, target: _O, state_dict: _InstanceDict) -> None:
602 """Receive an object instance after its associated state has
603 been unpickled.
604
605 :param target: the mapped instance. If
606 the event is configured with ``raw=True``, this will
607 instead be the :class:`.InstanceState` state-management
608 object associated with the instance.
609 :param state_dict: the dictionary sent to
610 :class:`.InstanceState.__setstate__`, containing the state
611 dictionary which was pickled.
612
613 """
614
615
616class _EventsHold(event.RefCollection[_ET]):

Callers 1

__call__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected