MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / locals_

Method locals_

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

Source from the content-addressed store, hash-verified

2940 local_side = util.column_set(self.parent_persist_selectable.c)
2941
2942 def locals_(element: _CE, **kw: Any) -> Optional[_CE]:
2943 if "remote" not in element._annotations and element in local_side:
2944 return element._annotate({"local": True})
2945 return None
2946
2947 self.primaryjoin = visitors.replacement_traverse(
2948 self.primaryjoin, {}, locals_

Callers

nothing calls this directly

Calls 1

_annotateMethod · 0.45

Tested by

no test coverage detected