Skip to content

Commit 87ec961

Browse files
chore(deps-dev): update black requirement from <24.0.0 to <25.0.0 (#950)
* chore(deps-dev): update black requirement from <24.0.0 to <25.0.0 Updates the requirements on [black](https://github.com/psf/black) to permit the latest version. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@18.3a0...24.1.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development ... Signed-off-by: dependabot[bot] <[email protected]> * black fixes --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mykola Mokhnach <[email protected]>
1 parent d0ad068 commit 87ec961

File tree

6 files changed

+13
-25
lines changed

6 files changed

+13
-25
lines changed

Pipfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ url = "https://pypi.org/simple"
44
verify_ssl = true
55

66
[dev-packages]
7-
black = "<24.0.0"
7+
black = "<25.0.0"
88
httpretty = "~=1.1"
99
isort = "<6.0"
1010
mypy = "<2.0"

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)