Method
_factory
(
cls,
selectable: FromClause[_KeyColCC_co],
name: Optional[str] = None,
flat: bool = False,
)
Source from the content-addressed store, hash-verified
| 1880 | |
| 1881 | @classmethod |
| 1882 | def _factory( |
| 1883 | cls, |
| 1884 | selectable: FromClause[_KeyColCC_co], |
| 1885 | name: Optional[str] = None, |
| 1886 | flat: bool = False, |
| 1887 | ) -> NamedFromClause[_KeyColCC_co]: |
| 1888 | # mypy refuses to see the overload that has this returning |
| 1889 | # NamedFromClause[Any]. Pylance sees it just fine. |
| 1890 | return coercions.expect(roles.FromClauseRole, selectable).alias( # type: ignore[no-any-return] # noqa: E501 |
| 1891 | name=name, flat=flat |
| 1892 | ) |
| 1893 | |
| 1894 | |
| 1895 | class TableValuedAlias(LateralFromClause, Alias): |
Callers
nothing calls this directly
Tested by
no test coverage detected