MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

lib/sqlalchemy/sql/elements.py:3717–3729  ·  view source on GitHub ↗
(
        self,
        expression: _ColumnExpressionArgument[Any],
        type_: _TypeEngineArgument[_T],
    )

Source from the content-addressed store, hash-verified

3715 typeclause: TypeClause
3716
3717 def __init__(
3718 self,
3719 expression: _ColumnExpressionArgument[Any],
3720 type_: _TypeEngineArgument[_T],
3721 ):
3722 self.type = type_api.to_instance(type_)
3723 self.clause = coercions.expect(
3724 roles.ExpressionElementRole,
3725 expression,
3726 type_=self.type,
3727 apply_propagate_attrs=self,
3728 )
3729 self.typeclause = TypeClause(self.type)
3730
3731 @util.ro_non_memoized_property
3732 def _from_objects(self) -> List[FromClause]:

Callers

nothing calls this directly

Calls 1

TypeClauseClass · 0.85

Tested by

no test coverage detected