MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / repl

Method repl

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

Source from the content-addressed store, hash-verified

2772 fixed_secondary = self.secondary
2773
2774 def repl(element: _CE, **kw: Any) -> Optional[_CE]:
2775 if fixed_secondary.c.contains_column(element):
2776 return element._annotate({"remote": True})
2777 return None
2778
2779 self.primaryjoin = visitors.replacement_traverse(
2780 self.primaryjoin, {}, repl

Callers

nothing calls this directly

Calls 2

contains_columnMethod · 0.45
_annotateMethod · 0.45

Tested by

no test coverage detected