- def find_all_overlaps(self, x: NumericRange):
- """Yields ranges previously added to the tree that x overlaps with.
+ def find_all_overlaps(
+ self, to_find: NumericRange
+ ) -> Generator[NumericRange, None, None]:
+ """Yields ranges previously added to the tree that overlaps with
+ to_find argument.
+
+ Args:
+ to_find: the interval with which to find all overlaps.
+
+ Returns:
+ A (potentially empty) sequence of all ranges in the tree
+ that overlap with the argument.