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

Method with_wrapper

lib/sqlalchemy/event/registry.py:261–271  ·  view source on GitHub ↗
(self, fn_wrap: _ListenerFnType)

Source from the content-addressed store, hash-verified

259 return (id(self.target), self.identifier, self.fn_key)
260
261 def with_wrapper(self, fn_wrap: _ListenerFnType) -> _EventKey[_ET]:
262 if fn_wrap is self._listen_fn:
263 return self
264 else:
265 return _EventKey(
266 self.target,
267 self.identifier,
268 self.fn,
269 self.dispatch_target,
270 _fn_wrap=fn_wrap,
271 )
272
273 def with_dispatch_target(self, dispatch_target: Any) -> _EventKey[_ET]:
274 if dispatch_target is self.dispatch_target:

Callers 12

listenMethod · 0.95
removeMethod · 0.95
_listenMethod · 0.80
_listenMethod · 0.80
_listenMethod · 0.80
_listenMethod · 0.80
_listenMethod · 0.80
_listenMethod · 0.80
_listenMethod · 0.80
_listenMethod · 0.80
_listenMethod · 0.80
_listenMethod · 0.80

Calls 1

_EventKeyClass · 0.85

Tested by 3

_listenMethod · 0.64
_listenMethod · 0.64
_listenMethod · 0.64