-
Notifications
You must be signed in to change notification settings - Fork 572
Move search context methods from webdriver and webelement to search_context #461
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
@KazuCocoa @mykola-mokhnach |
Returns: | ||
:obj:`list` of :obj:`appium.webdriver.webelement.WebElement` | ||
:rtype: list of `MobileWebElement` |
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.
why rtype
is set for some methods and is not set for others?
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.
For auto completion #404.
But I'll remove it if possible after check.
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.
Unfortunately it's necessary for auto completion in IDE.
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.
I mean can we add rtype to other method declarations to make it consistent?
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.
In my opinion, it's unnecessary. (it's confusing us though.)
Originally rtype
is unnecessary since Returns:
works for auto completion.
https://www.jetbrains.com/help/pycharm/type-syntax-for-docstrings.html
- reStructuredText(
rtype
) / Google(Returns:
) / and so on
But auto completion doesn't work with Returns:
for find_element_xxx
somehow.
So added rtype
to only find_element_xxx
.
Will add one comment to rtype
in each class.
@ki4070ma Added some suggestions, but otherwise looks good |
@@ -0,0 +1,43 @@ | |||
#!/usr/bin/env python |
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.
👍
For #336