unnecessary-direct-lambda-call (PLC3002)
Derived from the Pylint linter.
What it does
Checks for unnecessary direct calls to lambda expressions.
Why is this bad?
Calling a lambda expression directly is unnecessary. The expression can be executed inline instead to improve readability.
Example
Use instead: