1
0
mirror of synced 2024-11-26 03:04:22 +01:00

Add some more type hinting

This commit is contained in:
jvoisin 2018-04-02 23:40:00 +02:00
parent f5753dec40
commit b5a5535e3f

View File

@ -6,7 +6,7 @@ import argparse
from src import parser_factory from src import parser_factory
def __check_file(filename:str, mode=os.R_OK) -> bool: def __check_file(filename:str, mode:int = os.R_OK) -> bool:
if not os.path.isfile(filename): if not os.path.isfile(filename):
print("[-] %s is not a regular file." % filename) print("[-] %s is not a regular file." % filename)
return False return False
@ -53,7 +53,6 @@ def clean_meta(filename:str):
def main(): def main():
args = create_arg_parser().parse_args() args = create_arg_parser().parse_args()
if args.show: if args.show:
for f in args.files: for f in args.files:
show_meta(f) show_meta(f)