-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Replace unused variable in lambda expression #2160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
In Python it is common to indicate unused variables by choosing _ (underscore) as variable name. This commit replaces some instances of unused variables in lambda expressions to align with Python customs and also other test examples in the repository.
✅ Deploy Preview for selenium-dev ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
As the example is explicitly on how side effects can be achieved the suggestion is imho a false positive. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @b2m !
Congratulations on your first contribution to Selenium-docs @b2m 🎉 🎉 |
Great experience, feels like I should repeat it sometime 😉. Thank you @harsha509. |
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.