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

Method _create_bitwise_not

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

Source from the content-addressed store, hash-verified

3709
3710 @classmethod
3711 def _create_bitwise_not(
3712 cls,
3713 expr: _ColumnExpressionArgument[_T],
3714 ) -> UnaryExpression[_T]:
3715 col_expr: ColumnElement[_T] = coercions.expect(
3716 roles.ExpressionElementRole, expr
3717 )
3718 return UnaryExpression(
3719 col_expr,
3720 operator=operators.bitwise_not_op,
3721 type_=col_expr.type,
3722 )
3723
3724 @property
3725 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