Reflect how find_elements returns a list, not just one WebElement#10172
Conversation
Codecov Report
@@ Coverage Diff @@
## trunk #10172 +/- ##
==========================================
+ Coverage 44.88% 44.90% +0.02%
==========================================
Files 86 86
Lines 5659 5663 +4
Branches 264 265 +1
==========================================
+ Hits 2540 2543 +3
Misses 2855 2855
- Partials 264 265 +1
Continue to review full report at Codecov.
|
|
Kudos, SonarCloud Quality Gate passed! |
|
problems like this (and #10120) would be much easier to spot if you disabled a bunch of the warnings in your this concerns me because, in the mean time, these incorrect annotations have caused problems in a codebase i work on i strongly recommend you follow mypy's advice about how to migrate existing codebases rather than turning on every message right from the start |








Description (and motivation and context)
The author of python/typeshed#6565 seems to have been misled by the return types changed here, and it caused mypy to make a lot of complaints in a codebase I work on. Here, like in python/typeshed#6645, those annotations are corrected to reflect that any method with
find_elementsin the name returns a list.Types of changes
Checklist