Fix typing of cube_pool.load_pools()
This commit is contained in:
parent
b57ddacefd
commit
f8b5d804df
1 changed files with 2 additions and 2 deletions
|
|
@ -4,7 +4,7 @@ import csv
|
|||
import itertools
|
||||
import random
|
||||
from collections import defaultdict
|
||||
from typing import Dict, List, Set
|
||||
from typing import Dict, Set
|
||||
|
||||
import cubecobra_csv
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ class CubePool:
|
|||
return random.sample(wide_iterator, n)
|
||||
|
||||
|
||||
def load_pools(csv_path: str, pool_tags: Set[str]) -> Dict[str, List[str]]:
|
||||
def load_pools(csv_path: str, pool_tags: Set[str]) -> Dict[str, CubePool]:
|
||||
pools = defaultdict(CubePool)
|
||||
with open(csv_path) as f:
|
||||
reader = csv.reader(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue