MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _create_bitwise_not

Method _create_bitwise_not

lib/sqlalchemy/sql/elements.py:3996–4007  ·  view source on GitHub ↗
(
        cls,
        expr: _ColumnExpressionArgument[_T],
    )

Source from the content-addressed store, hash-verified

3994
3995 @classmethod
3996 def _create_bitwise_not(
3997 cls,
3998 expr: _ColumnExpressionArgument[_T],
3999 ) -> UnaryExpression[_T]:
4000 col_expr: ColumnElement[_T] = coercions.expect(
4001 roles.ExpressionElementRole, expr
4002 )
4003 return UnaryExpression(
4004 col_expr,
4005 operator=operators.bitwise_not_op,
4006 type_=col_expr.type,
4007 )
4008
4009 @property
4010 def _order_by_label_element(self) -> Optional[Label[Any]]:

Callers 1

bitwise_notFunction · 0.80

Calls 1

UnaryExpressionClass · 0.85

Tested by

no test coverage detected