Replace unused variable in lambda expression #2160
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
Description
In Python it is common to indicate unused variables by choosing _ (underscore) as variable name. This pull request replaces some instances of unused variables in lambda expressions to align with Python customs and also other test examples in the repository.
Types of changes
Checklist
PR Type
Enhancement
Description
Replaced unused variables in lambda expressions with
_
for Python convention.Improved code readability and consistency with Python customs.
Changes walkthrough 📝
test_waits.py
Update lambda expressions to use `_` for unused variables
examples/python/tests/waits/test_waits.py
d
with_
in lambda expressions to indicate unused variables.test_explicit
andtest_explicit_options
) forbetter readability.