-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Add/fix type hints for find_element/find_elements #16786
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] Add/fix type hints for find_element/find_elements #16786
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
User description
💥 What does this PR do?
#15697
This PR improves the type hints on all of
find_element/find_elementsmethods. It also fixes an incorrect type hint on thevaluearg in these methods for shadowroot.This also updates the docstring in shadowroot/webelement that mention
RelativeBysince that is not supported in those methods.🔄 Types of changes
PR Type
Enhancement, Bug fix
Description
Fix
valueparameter type hint fromstrtostr | Nonein shadowrootUpdate return type hints to use modern generic syntax (
list[WebElement])Improve type safety across find_element/find_elements methods