'Refactored by Sourcery'

This commit is contained in:
Sourcery AI 2021-10-10 03:28:58 +00:00
parent ea8fec7e89
commit d835a3cb5b
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ def cast(val, typ):
# sys.stderr.write('\ndebug | `val:type`: `' + val + ':' + typ + '`.\n') # sys.stderr.write('\ndebug | `val:type`: `' + val + ':' + typ + '`.\n')
if typ == 'bool': if typ == 'bool':
if (val == 'True') or (val == ''): if val in ['True', '']:
return True return True
elif val == 'False': elif val == 'False':
return False return False