MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __get__

Method __get__

lib/sqlalchemy/event/base.py:464–473  ·  view source on GitHub ↗
(self, obj: Any, cls: Type[Any])

Source from the content-addressed store, hash-verified

462
463class slots_dispatcher(dispatcher[_ET]):
464 def __get__(self, obj: Any, cls: Type[Any]) -> Any:
465 if obj is None:
466 return self.dispatch
467
468 if hasattr(obj, "_slots_dispatch"):
469 return obj._slots_dispatch
470
471 disp = self.dispatch._for_instance(obj)
472 obj._slots_dispatch = disp
473 return disp

Callers

nothing calls this directly

Calls 1

_for_instanceMethod · 0.80

Tested by

no test coverage detected