-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Fix type annotations in the chromium webdriver file #16309
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
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…rom other class in package
@cgoldberg kindly let me know if any more change is required? |
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 now. Thanks.
Thank you. |
User description
🔗 Related Issues
#15697
💥 What does this PR do?
this PR fixes the mypy errors of the chromium, webdriver.py file .
🔧 Implementation Notes
The mypy errors were resolved by using ChromiumService, instead Service, and
ChromiumOptions instead of ArgOptions
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix
Description
Fixed mypy type errors in chromium webdriver
Replaced generic types with specific chromium types
Added proper default value handling for parameters
Improved type safety with string conversions
Diagram Walkthrough
File Walkthrough
webdriver.py
Fix mypy errors with chromium-specific types
py/selenium/webdriver/chromium/webdriver.py
Service
andArgOptions
imports withChromiumService
and
ChromiumOptions
Optional typing
parameters