unnecessary-direct-lambda-call / C3002#
Lambda expression called directly. Execute the expression inline instead.
Used when a lambda expression is directly called rather than executing its contents inline.
y = (lambda x: x**2 + 2*x + 1)(a) # [unnecessary-direct-lambda-call]
y = a**2 + 2*a + 1
Created by the lambda-expressions checker.