MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _in_impl

Function _in_impl

lib/sqlalchemy/sql/default_comparator.py:211–226  ·  view source on GitHub ↗
(
    expr: ColumnElement[Any],
    op: OperatorType,
    seq_or_selectable: ClauseElement,
    negate_op: OperatorType,
    **kw: Any,
)

Source from the content-addressed store, hash-verified

209
210
211def _in_impl(
212 expr: ColumnElement[Any],
213 op: OperatorType,
214 seq_or_selectable: ClauseElement,
215 negate_op: OperatorType,
216 **kw: Any,
217) -> ColumnElement[Any]:
218 seq_or_selectable = coercions.expect(
219 roles.InElementRole, seq_or_selectable, expr=expr, operator=op
220 )
221 if "in_ops" in seq_or_selectable._annotations:
222 op, negate_op = seq_or_selectable._annotations["in_ops"]
223
224 return _boolean_compare(
225 expr, op, seq_or_selectable, negate_op=negate_op, **kw
226 )
227
228
229def _getitem_impl(

Callers

nothing calls this directly

Calls 1

_boolean_compareFunction · 0.85

Tested by

no test coverage detected