Skip to content

Commit b32d7ec

Browse files
committed
apply
1 parent 5790fe2 commit b32d7ec

File tree

5 files changed

+12
-24
lines changed

5 files changed

+12
-24
lines changed

appium/options/common/supports_capabilities.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
2121

2222

2323
class SupportsCapabilities(Protocol):
24-
def set_capability(self: T, name: str, value: Any) -> T:
25-
...
24+
def set_capability(self: T, name: str, value: Any) -> T: ...
2625

27-
def get_capability(self: T, name: str) -> Any:
28-
...
26+
def get_capability(self: T, name: str) -> Any: ...

appium/protocols/webdriver/can_execute_commands.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020
class CanExecuteCommands(Protocol):
2121
command_executor: RemoteConnection
2222

23-
def execute(self, driver_command: str, params: Union[Dict, None] = None) -> Dict:
24-
...
23+
def execute(self, driver_command: str, params: Union[Dict, None] = None) -> Dict: ...

appium/protocols/webdriver/can_execute_scripts.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,12 @@
1616

1717

1818
class CanExecuteScripts(Protocol):
19-
def pin_script(self, script: str, script_key: Optional[Any] = None) -> Any:
20-
...
19+
def pin_script(self, script: str, script_key: Optional[Any] = None) -> Any: ...
2120

22-
def unpin(self, script_key: Any) -> None:
23-
...
21+
def unpin(self, script_key: Any) -> None: ...
2422

25-
def get_pinned_scripts(self) -> List[str]:
26-
...
23+
def get_pinned_scripts(self) -> List[str]: ...
2724

28-
def execute_script(self, script: str, *args: Any) -> Any:
29-
...
25+
def execute_script(self, script: str, *args: Any) -> Any: ...
3026

31-
def execute_async_script(self, script: str, *args: Any) -> Any:
32-
...
27+
def execute_async_script(self, script: str, *args: Any) -> Any: ...

appium/protocols/webdriver/can_find_elements.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919

2020

2121
class CanFindElements(Protocol):
22-
def find_element(self, by: str, value: Union[str, Dict, None] = None) -> 'WebElement':
23-
...
22+
def find_element(self, by: str, value: Union[str, Dict, None] = None) -> 'WebElement': ...
2423

25-
def find_elements(self, by: str, value: Union[str, Dict, None] = None) -> List['WebElement']:
26-
...
24+
def find_elements(self, by: str, value: Union[str, Dict, None] = None) -> List['WebElement']: ...

appium/protocols/webdriver/can_remember_extension_presence.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919

2020
class CanRememberExtensionPresence(Protocol):
21-
def assert_extension_exists(self: T, ext_name: str) -> T:
22-
...
21+
def assert_extension_exists(self: T, ext_name: str) -> T: ...
2322

24-
def mark_extension_absence(self: T, ext_name: str) -> T:
25-
...
23+
def mark_extension_absence(self: T, ext_name: str) -> T: ...

0 commit comments

Comments
 (0)