diff options
author | Joris | 2020-06-06 10:09:27 +0200 |
---|---|---|
committer | Joris | 2020-06-06 10:09:27 +0200 |
commit | 6b9195000eb5404c247288b384d7ca2bacc1ab23 (patch) | |
tree | d36d669b70d2a5f2789335e814489cd641fbae3e /src/util/range.py | |
parent | b244640288648f27ce1fc7be3f175703e0a3412b (diff) |
Add unit tests
Diffstat (limited to 'src/util/range.py')
-rw-r--r-- | src/util/range.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/range.py b/src/util/range.py index c75232c..bd4b27e 100644 --- a/src/util/range.py +++ b/src/util/range.py @@ -1,10 +1,10 @@ -from typing import NamedTuple +from typing import NamedTuple, List class Range(NamedTuple): start: int length: int -def from_indexes(indexes): +def from_indexes(indexes: List[int]) -> List[Range]: ranges = [] curr_range_start = 0 curr_range_len = 0 |