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

Method locals_

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

Source from the content-addressed store, hash-verified

2857 local_side = util.column_set(self.parent_persist_selectable.c)
2858
2859 def locals_(element: _CE, **kw: Any) -> Optional[_CE]:
2860 if "remote" not in element._annotations and element in local_side:
2861 return element._annotate({"local": True})
2862 return None
2863
2864 self.primaryjoin = visitors.replacement_traverse(
2865 self.primaryjoin, {}, locals_

Callers

nothing calls this directly

Calls 1

_annotateMethod · 0.45

Tested by

no test coverage detected