-
-
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
fix type errors for pointer_input.py
, wheel_input.py
and firefox/options.py
#14476
Conversation
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #14476 +/- ##
==========================================
- Coverage 57.65% 57.64% -0.02%
==========================================
Files 89 89
Lines 5571 5586 +15
Branches 236 245 +9
==========================================
+ Hits 3212 3220 +8
+ Misses 2123 2121 -2
- Partials 236 245 +9 ☔ View full report in Codecov by Sentry. |
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 @navin772 !
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Fixes the mypy type errors for multiple files.
Types of changes
Checklist
PR Type
Bug fix
Description
firefox/options.py
.create_pause
methods inpointer_input.py
andwheel_input.py
to accept both integers and floats.log_output
inchromium/service.py
.Changes walkthrough 📝
service.py
Fix type handling for log_output in Chromium service
py/selenium/webdriver/chromium/service.py
log_output
asOptional[IOBase]
.IOBase
type forlog_output
.pointer_input.py
Update create_pause method to accept int or float
py/selenium/webdriver/common/actions/pointer_input.py
create_pause
method to acceptUnion[int, float]
.wheel_input.py
Update create_pause method to accept int or float
py/selenium/webdriver/common/actions/wheel_input.py
create_pause
method to acceptUnion[int, float]
.options.py
Add type hints and update method signatures in Firefox options
py/selenium/webdriver/firefox/options.py
enable_mobile
method to useOptional[str]
.service.py
Remove type ignore comment in WPEWebKit service
py/selenium/webdriver/wpewebkit/service.py
# type: ignore
comment.