MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _remove_dispatcher

Function _remove_dispatcher

lib/sqlalchemy/event/base.py:219–223  ·  view source on GitHub ↗
(cls: Type[_HasEventsDispatch[_ET]])

Source from the content-addressed store, hash-verified

217
218
219def _remove_dispatcher(cls: Type[_HasEventsDispatch[_ET]]) -> None:
220 for k in cls.dispatch._event_names:
221 _registrars[k].remove(cls)
222 if not _registrars[k]:
223 del _registrars[k]
224
225
226class _HasEventsDispatch(Generic[_ET]):

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected