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

Method self_group

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

Source from the content-addressed store, hash-verified

5006 return None
5007
5008 def self_group(
5009 self, against: Optional[OperatorType] = None
5010 ) -> Union[Self, Grouping[_T]]:
5011 if operators.is_precedent(operators.filter_op, against):
5012 return Grouping(self)
5013 else:
5014 return self
5015
5016 if not TYPE_CHECKING:
5017

Callers

nothing calls this directly

Calls 1

GroupingClass · 0.85

Tested by

no test coverage detected