MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _join

Method _join

lib/sqlalchemy/event/base.py:188–197  ·  view source on GitHub ↗

Create a 'join' of this :class:`._Dispatch` and another. This new dispatcher will dispatch events to both :class:`._Dispatch` objects.

(self, other: _DispatchCommon[_ET])

Source from the content-addressed store, hash-verified

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.
190
191 This new dispatcher will dispatch events to both
192 :class:`._Dispatch` objects.
193
194 """
195 assert "_joined_dispatch_cls" in self.__class__.__dict__
196
197 return self._joined_dispatch_cls(self, other)
198
199 def __reduce__(self) -> Union[str, Tuple[Any, ...]]:
200 return _UnpickleDispatch(), (self._instance_cls,)

Callers 6

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by 2

__init__Method · 0.36
__init__Method · 0.36