Redundant lambda definitions

Avoid unnecessarily wrapping a function in a lambda

Avoid defining a lambda function which passes through of it is arguments to another callable. You can instead safely directly call the callable.

If our GitHub code review bot spots this issue in your pull request it gives this advice:

code-review-doctorbotsuggested changes just now
helpers.py
1
+
foo = lambda x: bar(x)

Avoid unnecessarily wrapping a function in a lambda

Read more
Suggested changes
-
foo = lambda x: bar(x)
+
foo = bar
Commit suggestion
Update helpers.py

Instantly check if you have this issue for free

    Works with tools you use

    Read about how it works.