Skip to content

Commit

Permalink
apply
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Sep 23, 2024
1 parent 5790fe2 commit b32d7ec
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 24 deletions.
6 changes: 2 additions & 4 deletions appium/options/common/supports_capabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@


class SupportsCapabilities(Protocol):
def set_capability(self: T, name: str, value: Any) -> T:
...
def set_capability(self: T, name: str, value: Any) -> T: ...

def get_capability(self: T, name: str) -> Any:
...
def get_capability(self: T, name: str) -> Any: ...
3 changes: 1 addition & 2 deletions appium/protocols/webdriver/can_execute_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,4 @@
class CanExecuteCommands(Protocol):
command_executor: RemoteConnection

def execute(self, driver_command: str, params: Union[Dict, None] = None) -> Dict:
...
def execute(self, driver_command: str, params: Union[Dict, None] = None) -> Dict: ...
15 changes: 5 additions & 10 deletions appium/protocols/webdriver/can_execute_scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@


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

def unpin(self, script_key: Any) -> None:
...
def unpin(self, script_key: Any) -> None: ...

def get_pinned_scripts(self) -> List[str]:
...
def get_pinned_scripts(self) -> List[str]: ...

def execute_script(self, script: str, *args: Any) -> Any:
...
def execute_script(self, script: str, *args: Any) -> Any: ...

def execute_async_script(self, script: str, *args: Any) -> Any:
...
def execute_async_script(self, script: str, *args: Any) -> Any: ...
6 changes: 2 additions & 4 deletions appium/protocols/webdriver/can_find_elements.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@


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

def find_elements(self, by: str, value: Union[str, Dict, None] = None) -> List['WebElement']:
...
def find_elements(self, by: str, value: Union[str, Dict, None] = None) -> List['WebElement']: ...
6 changes: 2 additions & 4 deletions appium/protocols/webdriver/can_remember_extension_presence.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@


class CanRememberExtensionPresence(Protocol):
def assert_extension_exists(self: T, ext_name: str) -> T:
...
def assert_extension_exists(self: T, ext_name: str) -> T: ...

def mark_extension_absence(self: T, ext_name: str) -> T:
...
def mark_extension_absence(self: T, ext_name: str) -> T: ...

0 comments on commit b32d7ec

Please sign in to comment.