Unnecessary parens after 'if' keyword
24
25
26def supports_file(file, supported_files, data_files):
27 return bool([ft for ft in supported_files if (ft in file.lower())]) and file + '.json' in data_files
Description
Extra parentheses in code can be removed for improved readability.
In the examples below, the first example is more readable than the second one.
Preferred:
if len(some_variable) + 1 < 1:
...
Not preferred:
if (len(some_variable) + 1) < 1:
...