MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _for_instance

Method _for_instance

lib/sqlalchemy/event/base.py:184–186  ·  view source on GitHub ↗
(self, instance: _ET)

Source from the content-addressed store, hash-verified

182 return self.__class__(self, instance_cls)
183
184 def _for_instance(self, instance: _ET) -> _Dispatch[_ET]:
185 instance_cls = instance.__class__
186 return self._for_class(instance_cls)
187
188 def _join(self, other: _DispatchCommon[_ET]) -> _JoinedDispatcher[_ET]:
189 """Create a 'join' of this :class:`._Dispatch` and another.

Callers 2

__get__Method · 0.80
__get__Method · 0.80

Calls 1

_for_classMethod · 0.95

Tested by

no test coverage detected