Python

Python

Made by DeepSource

Named lambda expression detected FLK-E731

Anti-pattern
Minor

Lambdas should not be assigned to a variable. Instead, they should be defined as functions. The primary reason for this is debugging. Lambdas show as <lambda> in tracebacks, where functions will display the function’s name.