MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _inv_impl

Function _inv_impl

lib/sqlalchemy/sql/default_comparator.py:253–263  ·  view source on GitHub ↗

See :meth:`.ColumnOperators.__inv__`.

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

Source from the content-addressed store, hash-verified

251
252
253def _inv_impl(
254 expr: ColumnElement[Any], op: OperatorType, **kw: Any
255) -> ColumnElement[Any]:
256 """See :meth:`.ColumnOperators.__inv__`."""
257
258 # undocumented element currently used by the ORM for
259 # relationship.contains()
260 if hasattr(expr, "negation_clause"):
261 return expr.negation_clause
262 else:
263 return expr._negate()
264
265
266def _neg_impl(

Callers

nothing calls this directly

Calls 1

_negateMethod · 0.45

Tested by

no test coverage detected