MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / strictly_left_of

Method strictly_left_of

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

Determine whether this range is completely to the left of `other`.

(self, other: Range[_T])

Source from the content-addressed store, hash-verified

364 return False
365
366 def strictly_left_of(self, other: Range[_T]) -> bool:
367 "Determine whether this range is completely to the left of `other`."
368
369 # Empty ranges are neither to left nor to the right of any other range
370 if self.empty or other.empty:
371 return False
372
373 supper = self.upper
374 supper_b = self.bounds[1]
375 olower = other.lower
376 olower_b = other.bounds[0]
377
378 # Check whether this upper edge is less than other's lower end
379 return self._compare_edges(supper, supper_b, olower, olower_b) < 0
380
381 __lshift__ = strictly_left_of
382

Callers 3

test_strictly_left_ofMethod · 0.45

Calls 1

_compare_edgesMethod · 0.95

Tested by 2

test_strictly_left_ofMethod · 0.36