diff --git a/epicyon.py b/epicyon.py index fe98b2e05..cb6b0637d 100644 --- a/epicyon.py +++ b/epicyon.py @@ -71,7 +71,9 @@ from socnet import instancesGraph import argparse -def str2bool(v): +def str2bool(v) -> bool: + """Returns true if the given value is a boolean + """ if isinstance(v, bool): return v if v.lower() in ('yes', 'true', 't', 'y', '1'):