(element: _CE, **kw: Any)
| 2867 | |
| 2868 | def _annotate_parentmapper(self) -> None: |
| 2869 | def parentmappers_(element: _CE, **kw: Any) -> Optional[_CE]: |
| 2870 | if "remote" in element._annotations: |
| 2871 | return element._annotate({"parentmapper": self.prop.mapper}) |
| 2872 | elif "local" in element._annotations: |
| 2873 | return element._annotate({"parentmapper": self.prop.parent}) |
| 2874 | return None |
| 2875 | |
| 2876 | self.primaryjoin = visitors.replacement_traverse( |
| 2877 | self.primaryjoin, {}, parentmappers_ |