MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _set_callable

Method _set_callable

lib/sqlalchemy/orm/state.py:706–716  ·  view source on GitHub ↗
(
                state: InstanceState[_O],
                dict_: _InstanceDict,
                row: Row[Unpack[TupleAny]],
            )

Source from the content-addressed store, hash-verified

704 fixed_impl = impl
705
706 def _set_callable(
707 state: InstanceState[_O],
708 dict_: _InstanceDict,
709 row: Row[Unpack[TupleAny]],
710 ) -> None:
711 if "callables" not in state.__dict__:
712 state.callables = {}
713 old = dict_.pop(key, None)
714 if old is not None:
715 fixed_impl._invalidate_collection(old)
716 state.callables[key] = fn
717
718 else:
719

Callers

nothing calls this directly

Calls 2

popMethod · 0.45

Tested by

no test coverage detected