-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Add types to set_window_position parameters #13786
Add types to set_window_position parameters #13786
Conversation
PR Description updated to latest commit (13ed675)
|
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
The bot suggests:
I chose not to do this as the function casts |
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.
LGTM.
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.
Are integers considered as floats in Python? What happens if the user enters 1
instead of 1.0
?
Only in the type system, because this is such a common use case.
That's accepted. It is as if we have written |
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, @adamtheturtle!
Type
enhancement
Description
set_window_position
method by adding type annotations to its parameters, improving code readability and type checking.Changes walkthrough
webdriver.py
Add Type Annotations to set_window_position Parameters
py/selenium/webdriver/remote/webdriver.py
x
andy
parameters of theset_window_position
method.