Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoyongjie committed Apr 20, 2022
1 parent 651c523 commit 2e4753e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/utils/pandas_postprocessing/rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def rename(
except (IndexError, KeyError) as err:
raise InvalidPostProcessingError from err

if all([new_name in _rename_level for new_name in columns.values()]):
if all(new_name in _rename_level for new_name in columns.values()):
raise InvalidPostProcessingError(_("Label already exists"))

if inplace:
Expand Down

0 comments on commit 2e4753e

Please sign in to comment.