Sitelet https://github.com/appium/python-client/pull/950/files
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
black = "<24.0.0"
black = "<25.0.0"
httpretty = "~=1.1"
isort = "<6.0"
mypy = "<2.0"
Expand Down
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: ...