flake8-comprehensions
flake8-comprehensions copied to clipboard
What about adding the walrus operator := ?
Description
The walrus operator can be quite helpful but it is not yet widely adopted. All the walrus-related packages on PyPI are either unrelated to :=
or they actively discourage its use like https://pypi.org/project/flake8-walrus
It would be cool to have a way to automatically spot places where :=
could be used to accelerate its adoption.
I'd be happy to consider concrete proposals where using the walrus would lead to a comprehension/generator expression being faster. Do you have any?
This seems more of a suggestion for flake8-simplify https://pypi.org/project/flake8-simplify/