Skip to content

refactor: remove unnecessary lambda expression#1

Open
deepsource-autofix[bot] wants to merge 1 commit into
mainfrom
deepsource-autofix-932cf237
Open

refactor: remove unnecessary lambda expression#1
deepsource-autofix[bot] wants to merge 1 commit into
mainfrom
deepsource-autofix-932cf237

Conversation

@deepsource-autofix

Copy link
Copy Markdown

A lambda that calls a function without modifying any of its parameters is unnecessary. Python functions are first-class objects and can be passed around in the same way as the resulting lambda. It is recommended to remove the lambda and use the function directly.

A lambda that calls a function without modifying any of its parameters is unnecessary. Python functions are first-class objects and can be passed around in the same way as the resulting lambda. It is recommended to remove the lambda and use the function directly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants