MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __call__

Method __call__

lib/sqlalchemy/event/base.py:67–74  ·  view source on GitHub ↗
(self, _instance_cls: Type[_ET])

Source from the content-addressed store, hash-verified

65 """
66
67 def __call__(self, _instance_cls: Type[_ET]) -> _Dispatch[_ET]:
68 for cls in _instance_cls.__mro__:
69 if "dispatch" in cls.__dict__:
70 return cast(
71 "_Dispatch[_ET]", cls.__dict__["dispatch"].dispatch
72 )._for_class(_instance_cls)
73 else:
74 raise AttributeError("No class with a 'dispatch' member present.")
75
76
77class _DispatchCommon(Generic[_ET]):

Callers

nothing calls this directly

Calls 2

_for_classMethod · 0.80
castFunction · 0.50

Tested by

no test coverage detected