MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _for_class

Method _for_class

lib/sqlalchemy/event/base.py:181–182  ·  view source on GitHub ↗
(self, instance_cls: Type[_ET])

Source from the content-addressed store, hash-verified

179 return self._events._listen(event_key, **kw)
180
181 def _for_class(self, instance_cls: Type[_ET]) -> _Dispatch[_ET]:
182 return self.__class__(self, instance_cls)
183
184 def _for_instance(self, instance: _ET) -> _Dispatch[_ET]:
185 instance_cls = instance.__class__

Callers 3

_for_instanceMethod · 0.95
_configure_registriesFunction · 0.80
__call__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected