This question shows pylint reporting unnecessary-comprehension
on this code:
dict1 = {"A": "This is A", "B": "This is B"}
bools = [True, False]
dict2 = {key: value for key, value in zip(dict1.keys(), bools)}
This question asks in general if there is an automated tool to fix pylint issues. It mentions black, autopep8, autoflake8. None of those fix this.
Is there a tool to apply that would fix this pylint warning?