Skip to content

Commit b88774a

Browse files
author
Benjamin Moody
committed
overlapping_ranges: fix type annotations.
This function takes as input a pair of *sequences* of 2-tuples (not a pair of 2-tuples) and returns a list of 2-tuples.
1 parent e8ec6b0 commit b88774a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

wfdb/io/util.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import math
55
import os
66

7-
from typing import Sequence, Tuple
7+
from typing import List, Sequence, Tuple
88

99

1010
def lines_to_file(file_name: str, write_dir: str, lines: Sequence[str]):
@@ -102,8 +102,9 @@ def upround(x, base):
102102

103103

104104
def overlapping_ranges(
105-
ranges_1: Tuple[int, int], ranges_2: Tuple[int, int]
106-
) -> Tuple[int, int]:
105+
ranges_1: Sequence[Tuple[int, int]],
106+
ranges_2: Sequence[Tuple[int, int]],
107+
) -> List[Tuple[int, int]]:
107108
"""
108109
Given two collections of integer ranges, return a list of ranges
109110
in which both input inputs overlap.

0 commit comments

Comments
 (0)