main
Bob Mottram 2020-09-25 09:10:21 +00:00
parent 640fc95ad0
commit 5bc7a337a0
1 changed files with 3 additions and 1 deletions

View File

@ -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'):