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

Function _warn_for_runid_changed

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

Source from the content-addressed store, hash-verified

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

Callers 1

_instanceFunction · 0.85

Calls 2

state_strFunction · 0.85
warnMethod · 0.45

Tested by

no test coverage detected