From b7b743001eae170792c5f533757fa40d86a9788a Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 20 Jan 2023 12:43:47 +0300 Subject: mypy: minor fixes to typing errors --- gn3/api/search.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gn3/api') diff --git a/gn3/api/search.py b/gn3/api/search.py index 866b040..0e832da 100644 --- a/gn3/api/search.py +++ b/gn3/api/search.py @@ -173,7 +173,9 @@ def parse_location_field(species_query: xapian.Query, raise ValueError location: tuple[Maybe[int], Maybe[int]] if ".." in location_str: - location = tuple(limit.map(apply_si_suffix) for limit in parse_range(location_str)) + the_range = parse_range(location_str) + location = (the_range[0].map(apply_si_suffix), # type: ignore + the_range[1].map(apply_si_suffix)) # type: ignore # If point location, assume +/- 50 kbases on either side. else: width = 50*10**3 -- cgit v1.2.3