MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / self_group

Method self_group

lib/sqlalchemy/sql/elements.py:3810–3817  ·  view source on GitHub ↗
(
        self, against: Optional[OperatorType] = None
    )

Source from the content-addressed store, hash-verified

3808 return self.clause
3809
3810 def self_group(
3811 self, against: Optional[OperatorType] = None
3812 ) -> TypeCoerce[_T]:
3813 grouped = self.clause.self_group(against=against)
3814 if grouped is not self.clause:
3815 return TypeCoerce(grouped, self.type)
3816 else:
3817 return self
3818
3819
3820class Extract(ColumnElement[int]):

Callers

nothing calls this directly

Calls 2

TypeCoerceClass · 0.85
self_groupMethod · 0.45

Tested by

no test coverage detected