From b5a5535e3fbad7abb6551655e8fe463fd7e0a09d Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 2 Apr 2018 23:40:00 +0200 Subject: [PATCH] Add some more type hinting --- main.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 2c580f8..c6b4b21 100644 --- a/main.py +++ b/main.py @@ -6,7 +6,7 @@ import argparse 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): print("[-] %s is not a regular file." % filename) return False @@ -53,7 +53,6 @@ def clean_meta(filename:str): def main(): args = create_arg_parser().parse_args() - if args.show: for f in args.files: show_meta(f)