mirror of https://github.com/zulip/zulip.git
mypy: Use Python 3 type syntax in tools/lister.py.
This commit is contained in:
parent
bbdf9f0306
commit
96fa399ce0
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue