From d835a3cb5b8c1e2373d12bbaaa2b6a89e93b44a4 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Sun, 10 Oct 2021 03:28:58 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- tqdm/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tqdm/cli.py b/tqdm/cli.py index 11e9e553..68417aa6 100644 --- a/tqdm/cli.py +++ b/tqdm/cli.py @@ -25,7 +25,7 @@ def cast(val, typ): # sys.stderr.write('\ndebug | `val:type`: `' + val + ':' + typ + '`.\n') if typ == 'bool': - if (val == 'True') or (val == ''): + if val in ['True', '']: return True elif val == 'False': return False