From 6b9195000eb5404c247288b384d7ca2bacc1ab23 Mon Sep 17 00:00:00 2001 From: Joris Date: Sat, 6 Jun 2020 10:09:27 +0200 Subject: Add unit tests --- src/util/range.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/range.py') 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 -- cgit v1.2.3