MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/sql/selectable.py:3352–3371  ·  view source on GitHub ↗
(
        self,
        *columns: _OnlyColumnArgument[Any],
        name: Optional[str] = None,
        literal_binds: bool = False,
    )

Source from the content-addressed store, hash-verified

3350 name_cte_columns = True
3351
3352 def __init__(
3353 self,
3354 *columns: _OnlyColumnArgument[Any],
3355 name: Optional[str] = None,
3356 literal_binds: bool = False,
3357 ):
3358 super().__init__()
3359 self._column_args = tuple(
3360 coercions.expect(roles.LabeledColumnExprRole, col)
3361 for col in columns
3362 )
3363
3364 if name is None:
3365 self._unnamed = True
3366 self.name = _anonymous_label.safe_construct(id(self), "anon")
3367 else:
3368 self._unnamed = False
3369 self.name = name
3370 self.literal_binds = literal_binds
3371 self.named_with_column = not self._unnamed
3372
3373 @property
3374 def _column_types(self) -> List[TypeEngine[Any]]:

Callers

nothing calls this directly

Calls 2

safe_constructMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected