1
0
mirror of synced 2024-11-22 09:14:23 +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
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)