add type to install_utils
-# mypy: ignore-errors
-
import os
+from typing import List, Optional
-def print_warning(*lines):
+def print_warning(*lines: str) -> None:
print('**************************************************')
for line in lines:
print('*** WARNING: %s' % line)
print('**************************************************')
-def get_path(key):
+def get_path(key: str) -> List[str]:
return os.environ.get(key, '').split(os.pathsep)
-def search_on_path(filenames):
+def search_on_path(filenames: List[str]) -> Optional[str]:
for p in get_path('PATH'):
for filename in filenames:
full = os.path.join(p, filename)
