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

Method repl

lib/sqlalchemy/orm/relationships.py:2691–2694  ·  view source on GitHub ↗
(element: _CE, **kw: Any)

Source from the content-addressed store, hash-verified

2689 fixed_secondary = self.secondary
2690
2691 def repl(element: _CE, **kw: Any) -> Optional[_CE]:
2692 if fixed_secondary.c.contains_column(element):
2693 return element._annotate({"remote": True})
2694 return None
2695
2696 self.primaryjoin = visitors.replacement_traverse(
2697 self.primaryjoin, {}, repl

Callers

nothing calls this directly

Calls 2

contains_columnMethod · 0.45
_annotateMethod · 0.45

Tested by

no test coverage detected