Skip to content

Commit

Permalink
chore: add return self
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Feb 23, 2024
1 parent 1c6dcdf commit 65e6785
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion appium/webdriver/common/multi_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -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':
"""Add TouchAction objects to the MultiAction, to be performed later.
Args:
Expand All @@ -67,6 +67,8 @@ def add(self, *touch_actions: 'TouchAction') -> None:

self._touch_actions.append(copy.copy(touch_action))

return self

def perform(self) -> 'MultiAction':
"""Perform the actions stored in the object.
Expand Down

0 comments on commit 65e6785

Please sign in to comment.