-
Notifications
You must be signed in to change notification settings - Fork 563
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
fix: MultiAction.add() return #963
Conversation
|
@@ -45,7 +45,7 @@ def __init__(self, driver: 'WebDriver', element: Optional['WebElement'] = None) | |||
self._element = element | |||
self._touch_actions: List['TouchAction'] = [] | |||
|
|||
def add(self, *touch_actions: 'TouchAction') -> None: | |||
def add(self, *touch_actions: 'TouchAction') -> 'MultiAction': |
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.
where does it return?
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.
Updated. Just the docstring return value is updated now to align with the method's return value (None). Please 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.
we plan anyway to remove these endpoints soon, but for the sake of correctness lets have this patch merged
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.
Yes, I'm aware of that. After seeing it in the issues, I thought why not correct it for now.
Maybe proper fix is adding
|
Thank you, I made #964 to return self. Maybe this is a proper correction |
This is for sure better, I will close my PR then. Thank you |
closes #956