Skip to content

Commit 8cd31e0

Browse files
committed
Update clean.py
1 parent d366ab6 commit 8cd31e0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ci/fireci/fireciplugins/clean.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from fireci import ci_command
1919
from fireci import ci_utils
2020
from fireci import dir_utils
21-
from typing import Tuple
21+
from typing import Tuple, List, Callable, Union
2222
from termcolor import colored
2323

2424
log = logging.getLogger('fireci.clean')
@@ -95,8 +95,8 @@ def clean(projects, gradle, build, transforms, build_cache, deep, cache):
9595
""")
9696

9797

98-
def call_and_sum(variables, func) -> Tuple[int, int]:
99-
results = map(lambda var: func(var), variables)
98+
def call_and_sum(variables: List[str], func: Callable[[str], Union[bool, int]]) -> Tuple[int, int]:
99+
results = list(map(lambda var: func(var), variables))
100100
return ci_utils.counts(results)
101101

102102
def delete_build(dir: str) -> bool:

0 commit comments

Comments
 (0)