MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / EmptyCriterion

Class EmptyCriterion

tortoise/query_utils.py:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162
163
164class EmptyCriterion(Criterion):
165 def __or__(self, other: Criterion) -> Criterion: # type:ignore[override]
166 return other
167
168 def __and__(self, other: Criterion) -> Criterion: # type:ignore[override]
169 return other
170
171 def __bool__(self) -> bool:
172 return False
173
174
175def _and(left: Criterion, right: Criterion) -> Criterion:

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…