MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _neg_impl

Function _neg_impl

lib/sqlalchemy/sql/default_comparator.py:266–270  ·  view source on GitHub ↗

See :meth:`.ColumnOperators.__neg__`.

(
    expr: ColumnElement[Any], op: OperatorType, **kw: Any
)

Source from the content-addressed store, hash-verified

264
265
266def _neg_impl(
267 expr: ColumnElement[Any], op: OperatorType, **kw: Any
268) -> ColumnElement[Any]:
269 """See :meth:`.ColumnOperators.__neg__`."""
270 return UnaryExpression(expr, operator=operators.neg, type_=expr.type)
271
272
273def _bitwise_not_impl(

Callers

nothing calls this directly

Calls 1

UnaryExpressionClass · 0.85

Tested by

no test coverage detected