-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[py] Fix: Mypy type annotation errors in remote/webdriver.py #15900
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
[py] Fix: Mypy type annotation errors in remote/webdriver.py #15900
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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!
re-running CI.. it was running for over 3 hours so I killed it. |
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.
(the 2 CI failures are from Java tests, unrelated to this PR)
User description
🔗 Related Issues
Resolves some mypy type issues for #15697
💥 What does this PR do?
Fixes
mypy
type annotation errors inpy/selenium/webdriver/remote/webdriver.py
.🔧 Implementation Notes
Improved type annotations and error handling
🔄 Types of changes
PR Type
Other
Description
• Fix mypy type annotation errors in remote webdriver
• Add proper type hints for class attributes and variables
• Improve error handling with type casting and null checks
• Update function parameters with specific type annotations
Changes walkthrough 📝
webdriver.py
Fix mypy type annotations and error handling
py/selenium/webdriver/remote/webdriver.py
• Added missing type imports (Dict, Type, cast)
• Fixed type
annotations for class attributes and method parameters
• Added null
checks and type casting for command executor
• Improved variable
naming and type safety