[py] Fix: Mypy type annotation errors in remote/webdriver.py#15900
[py] Fix: Mypy type annotation errors in remote/webdriver.py#15900cgoldberg merged 4 commits intoSeleniumHQ:trunkfrom
Conversation
PR Reviewer Guide πHere are some key observations to aid the review process:
|
PR Code Suggestions β¨Explore these optional code suggestions:
|
|||||||||
|
re-running CI.. it was running for over 3 hours so I killed it. |
cgoldberg
left a comment
There was a problem hiding this comment.
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
mypytype 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