From 37e4be24129b6980e3e9fced7345d4a596af3d58 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Sun, 14 Apr 2019 19:41:30 +0200 Subject: digikey: o More flexibility, making room for the multiple digikey stores. o Removing URLs from core code. new tools: split_parts_by_supplier. --- src/ee/db.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ee/db.py') diff --git a/src/ee/db.py b/src/ee/db.py index 57533ef..79d48ee 100644 --- a/src/ee/db.py +++ b/src/ee/db.py @@ -1,4 +1,4 @@ -from typing import TypeVar, Generic, Callable, MutableMapping, List, Iterable, Union, Any, Mapping +from typing import TypeVar, Generic, Callable, MutableMapping, List, Iterable, Union, Any, Mapping, Tuple, AbstractSet K = TypeVar('K') V = TypeVar('V') @@ -69,7 +69,7 @@ class ListIndex(Index[K, V]): def __iter__(self): return self.idx.__iter__() - def items(self): + def items(self) -> AbstractSet[Tuple[K, V]]: return self.idx.items() def values(self): -- cgit v1.2.3