From 6397dceebd0107103c9802705630921255ef1ef0 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 12 Sep 2024 09:52:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- jira/client.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/jira/client.py b/jira/client.py index 1d0739ae7..7c38e5920 100644 --- a/jira/client.py +++ b/jira/client.py @@ -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_() @@ -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