MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / contains

Method contains

lib/sqlalchemy/dialects/postgresql/ranges.py:324–330  ·  view source on GitHub ↗

Determine whether this range contains `value`.

(self, value: Union[_T, Range[_T]])

Source from the content-addressed store, hash-verified

322 return True
323
324 def contains(self, value: Union[_T, Range[_T]]) -> bool:
325 "Determine whether this range contains `value`."
326
327 if isinstance(value, Range):
328 return value.contained_by(self)
329 else:
330 return self._contains_value(value)
331
332 __contains__ = contains
333

Callers

nothing calls this directly

Calls 2

_contains_valueMethod · 0.95
contained_byMethod · 0.45

Tested by

no test coverage detected