| 339 | return self.only_return_tuples(True) # type: ignore |
| 340 | |
| 341 | def _entity_from_pre_ent_zero(self) -> Optional[_InternalEntityType[Any]]: |
| 342 | if not self._raw_columns: |
| 343 | return None |
| 344 | |
| 345 | ent = self._raw_columns[0] |
| 346 | |
| 347 | if "parententity" in ent._annotations: |
| 348 | return ent._annotations["parententity"] # type: ignore |
| 349 | elif "bundle" in ent._annotations: |
| 350 | return ent._annotations["bundle"] # type: ignore |
| 351 | else: |
| 352 | # label, other SQL expression |
| 353 | for element in visitors.iterate(ent): |
| 354 | if "parententity" in element._annotations: |
| 355 | return element._annotations["parententity"] # type: ignore # noqa: E501 |
| 356 | else: |
| 357 | return None |
| 358 | |
| 359 | def _only_full_mapper_zero(self, methname: str) -> Mapper[Any]: |
| 360 | if ( |