MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _warn_for_runid_changed

Function _warn_for_runid_changed

lib/sqlalchemy/orm/loading.py:807–816  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

805
806
807def _warn_for_runid_changed(state):
808 util.warn(
809 "Loading context for %s has changed within a load/refresh "
810 "handler, suggesting a row refresh operation took place. If this "
811 "event handler is expected to be "
812 "emitting row refresh operations within an existing load or refresh "
813 "operation, set restore_load_context=True when establishing the "
814 "listener to ensure the context remains unchanged when the event "
815 "handler completes." % (state_str(state),)
816 )
817
818
819def _instance_processor(

Callers 1

_instanceFunction · 0.85

Calls 2

state_strFunction · 0.85
warnMethod · 0.45

Tested by

no test coverage detected