(
left: ColumnElement[Any], right: ColumnElement[Any]
)
| 2781 | ) |
| 2782 | |
| 2783 | def proc_left_right( |
| 2784 | left: ColumnElement[Any], right: ColumnElement[Any] |
| 2785 | ) -> Tuple[ColumnElement[Any], ColumnElement[Any]]: |
| 2786 | if isinstance(left, expression.ColumnClause) and isinstance( |
| 2787 | right, expression.ColumnClause |
| 2788 | ): |
| 2789 | if self.child_persist_selectable.c.contains_column( |
| 2790 | right |
| 2791 | ) and self.parent_persist_selectable.c.contains_column(left): |
| 2792 | right = right._annotate({"remote": True}) |
| 2793 | elif ( |
| 2794 | check_entities |
| 2795 | and right._annotations.get("parentmapper") is self.prop.mapper |
| 2796 | ): |
| 2797 | right = right._annotate({"remote": True}) |
| 2798 | elif ( |
| 2799 | check_entities |
| 2800 | and left._annotations.get("parentmapper") is self.prop.mapper |
| 2801 | ): |
| 2802 | left = left._annotate({"remote": True}) |
| 2803 | else: |
| 2804 | self._warn_non_column_elements() |
| 2805 | |
| 2806 | return left, right |
| 2807 | |
| 2808 | self.primaryjoin = visitors.cloned_traverse( |
| 2809 | self.primaryjoin, {}, {"binary": visit_binary} |
nothing calls this directly
no test coverage detected