(
self,
_annotations_traversal: bool = False,
ind_cols_on_fromclause: bool = False,
**kw: Any,
)
| 7499 | |
| 7500 | class AnnotatedFromClause(Annotated): |
| 7501 | def _copy_internals( |
| 7502 | self, |
| 7503 | _annotations_traversal: bool = False, |
| 7504 | ind_cols_on_fromclause: bool = False, |
| 7505 | **kw: Any, |
| 7506 | ) -> None: |
| 7507 | super()._copy_internals(**kw) |
| 7508 | |
| 7509 | # passed from annotations._shallow_annotate(), _deep_annotate(), etc. |
| 7510 | # the traversals used by annotations for these cases are not currently |
| 7511 | # designed around expecting that inner elements inside of |
| 7512 | # AnnotatedFromClause's element are also deep copied, so skip for these |
| 7513 | # cases. in other cases such as plain visitors.cloned_traverse(), we |
| 7514 | # expect this to happen. see issue #12915 |
| 7515 | if not _annotations_traversal: |
| 7516 | ee = self._Annotated__element # type: ignore |
| 7517 | ee._copy_internals(**kw) |
| 7518 | |
| 7519 | if ind_cols_on_fromclause: |
| 7520 | # passed from annotations._deep_annotate(). See that function |
| 7521 | # for notes |
| 7522 | ee = self._Annotated__element # type: ignore |
| 7523 | self.c = ee.__class__.c.fget(self) # type: ignore |
| 7524 | |
| 7525 | @util.ro_memoized_property |
| 7526 | def c(self) -> ReadOnlyColumnCollection[str, KeyedColumnElement[Any]]: |
nothing calls this directly
no test coverage detected