diff --git a/jira/client.py b/jira/client.py index 779fe3dfc..4eeffcda1 100644 --- a/jira/client.py +++ b/jira/client.py @@ -1638,7 +1638,9 @@ def group_members(self, group: str) -> OrderedDict: ( user["id"] if hasId - else user.get("name") if hasName else user.get("accountId") + else user.get("name") + if hasName + else user.get("accountId") ) ] = { "name": user.get("name"), diff --git a/jira/resources.py b/jira/resources.py index 7a267ba20..1c27793c4 100644 --- a/jira/resources.py +++ b/jira/resources.py @@ -608,9 +608,9 @@ def update( # type: ignore[override] # incompatible supertype ignored Resource """ options = self._options.copy() - options["path"] = ( - f"dashboard/{dashboard_id}/items/{item_id}/properties/{self.key}" - ) + options[ + "path" + ] = f"dashboard/{dashboard_id}/items/{item_id}/properties/{self.key}" self.raw["value"].update(value) self._session.put(self.JIRA_BASE_URL.format(**options), self.raw["value"]) @@ -628,9 +628,9 @@ def delete(self, dashboard_id: str, item_id: str) -> Response: # type: ignore[o Response """ options = self._options.copy() - options["path"] = ( - f"dashboard/{dashboard_id}/items/{item_id}/properties/{self.key}" - ) + options[ + "path" + ] = f"dashboard/{dashboard_id}/items/{item_id}/properties/{self.key}" return self._session.delete(self.JIRA_BASE_URL.format(**options))