Determine whether this range is completely to the left of `other`.
(self, other: Range[_T])
| 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 |