(v)
| 384 | |
| 385 | |
| 386 | def str2bool(v): |
| 387 | if isinstance(v, bool): |
| 388 | return v |
| 389 | if v.lower() in ('yes', 'true', 't', 'y', '1'): |
| 390 | return True |
| 391 | elif v.lower() in ('no', 'false', 'f', 'n', '0'): |
| 392 | return False |
| 393 | else: |
| 394 | raise argparse.ArgumentTypeError('Boolean value expected.') |
| 395 | |
| 396 | |
| 397 | def parse_args() -> Any: |
nothing calls this directly
no outgoing calls
no test coverage detected