mypy: Use Python 3 type syntax in tools/lister.py.

This commit is contained in:
picapi_ 2017-12-05 17:41:02 +00:00 committed by showell
parent bbdf9f0306
commit 96fa399ce0
1 changed files with 3 additions and 3 deletions

View File

@ -39,9 +39,9 @@ def get_ftype(fpath, use_shebang):
else: else:
return '' return ''
def list_files(targets=[], ftypes=[], use_shebang=True, modified_only=False, def list_files(targets: List[str]=[], ftypes: List[str]=[], use_shebang: bool=True,
exclude=[], group_by_ftype=False, extless_only=False): modified_only: bool=False, exclude: List[str]=[], group_by_ftype: bool=False,
# type: (List[str], List[str], bool, bool, List[str], bool, bool) -> Union[Dict[str, List[str]], List[str]] extless_only: bool=False) -> Union[Dict[str, List[str]], List[str]]:
""" """
List files tracked by git. List files tracked by git.