Add some more type hinting
This commit is contained in:
parent
f5753dec40
commit
b5a5535e3f
3
main.py
3
main.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user