Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 12, 2024
1 parent 790732d commit 6397dce
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -668,9 +668,11 @@ def __init__(

self.with_lookup = with_lookup
if with_lookup:
warnings.warn(f"Auto-lookup (with_lookup) has been set to True, the library will look-up the provided user "
f"for its 'add_watcher', 'remove_watcher' and 'assign_issue' methods; this functionality "
f"will be deprecated in future releases")
warnings.warn(
"Auto-lookup (with_lookup) has been set to True, the library will look-up the provided user "
"for its 'add_watcher', 'remove_watcher' and 'assign_issue' methods; this functionality "
"will be deprecated in future releases"
)

if self._options["check_update"] and not JIRA.checked_version:
self._check_update_()
Expand Down Expand Up @@ -2773,7 +2775,9 @@ def remove_watcher(self, issue: str | int, watcher: str | User) -> Response:
watcher_id = watcher
if self.with_lookup:
watcher_id = self._get_user_id(watcher_id)
payload = {"accountId": watcher_id} if self._is_cloud else {"username": watcher_id}
payload = (
{"accountId": watcher_id} if self._is_cloud else {"username": watcher_id}
)
result = self._session.delete(url, params=payload)
return result

Expand Down

0 comments on commit 6397dce

Please sign in to comment.