Commit 359a0595 authored by Abhilash Raj's avatar Abhilash Raj

Merge branch 'fix-warnings' into 'master'

Comparisons with literal should use `==`.

Closes #722

See merge request !660
parents 766c2fef 9d0aba66
Pipeline #155840030 passed with stage
in 11 minutes and 3 seconds
......@@ -106,7 +106,7 @@ def list_of_strings_validator(values):
# bug where an empty string ('') would be interpreted as a valid value ['']
# to create a singleton list, instead of empty list, which in later stages
# would create other problems.
if values is '': # noqa: F632
if values == '':
return []
if not isinstance(values, (list, tuple)):
values = [values]
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment