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 Mar 15, 2024
1 parent 0c9a753 commit 40cc086
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down
12 changes: 6 additions & 6 deletions jira/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])

Expand All @@ -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))

Expand Down

0 comments on commit 40cc086

Please sign in to comment.