Skip to content

Commit 1114b10

Browse files
chore(deps-dev): bump ruff from 0.14.14 to 0.15.0 (#1198)
* chore(deps-dev): bump ruff from 0.14.14 to 0.15.0 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.14.14 to 0.15.0. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.14.14...0.15.0) --- updated-dependencies: - dependency-name: ruff dependency-version: 0.15.0 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * run make fix to run with latest ruff --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kazuaki Matsuo <fly.49.89.over@gmail.com>
1 parent ae2802e commit 1114b10

2 files changed

Lines changed: 23 additions & 24 deletions

File tree

appium/webdriver/webdriver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def start_session(self, capabilities: Union[Dict, AppiumOptions], browser_profil
348348
# Due to a W3C spec parsing misconception some servers
349349
# pack the createSession response stuff into 'value' dictionary and
350350
# some other put it to the top level of the response JSON nesting hierarchy
351-
get_response_value: Callable[[str], Optional[Any]] = lambda key: response.get(key) or (
352-
response['value'].get(key) if isinstance(response.get('value'), dict) else None
351+
get_response_value: Callable[[str], Optional[Any]] = lambda key: (
352+
response.get(key) or (response['value'].get(key) if isinstance(response.get('value'), dict) else None)
353353
)
354354
session_id = get_response_value('sessionId')
355355
if not session_id:

uv.lock

Lines changed: 21 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)