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

Function contains

lib/sqlalchemy/event/api.py:217–220  ·  view source on GitHub ↗

Return True if the given target/ident/fn is set up to listen.

(target: Any, identifier: str, fn: Callable[..., Any])

Source from the content-addressed store, hash-verified

215
216
217def contains(target: Any, identifier: str, fn: Callable[..., Any]) -> bool:
218 """Return True if the given target/ident/fn is set up to listen."""
219
220 return _event_key(target, identifier, fn).contains()

Callers

nothing calls this directly

Calls 2

_event_keyFunction · 0.85
containsMethod · 0.45

Tested by

no test coverage detected