Skip to content

Commit ff7424b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 425da99 commit ff7424b

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

jira/client.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -5653,9 +5653,9 @@ def pinned_comments(self, issue: int | str) -> list[PinnedComment]:
56535653
for raw_comment_json in r_json
56545654
]
56555655
return pinned_comments
5656-
5656+
56575657
@translate_resource_args
5658-
def pin_comment(self, issue: int | str , comment: int | str, pin: bool) -> Response:
5658+
def pin_comment(self, issue: int | str, comment: int | str, pin: bool) -> Response:
56595659
"""Pin/Unpin a comment on the issue.
56605660
56615661
Args:
@@ -5666,5 +5666,5 @@ def pin_comment(self, issue: int | str , comment: int | str, pin: bool) -> Respo
56665666
Returns:
56675667
Response
56685668
"""
5669-
url = self._get_url("issue/" + str(issue) + "/comment/"+ str(comment) + "/pin")
5670-
return self._session.put(url, data=str(pin).lower())
5669+
url = self._get_url("issue/" + str(issue) + "/comment/" + str(comment) + "/pin")
5670+
return self._session.put(url, data=str(pin).lower())

jira/resources.py

+2
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ def update( # type: ignore[override]
954954

955955
super().update(async_=async_, jira=jira, notify=notify, fields=data)
956956

957+
957958
class PinnedComment(Resource):
958959
"""Pinned comment on an issue."""
959960

@@ -968,6 +969,7 @@ def __init__(
968969
self._parse_raw(raw)
969970
self.raw: dict[str, Any] = cast(dict[str, Any], self.raw)
970971

972+
971973
class RemoteLink(Resource):
972974
"""A link to a remote application from an issue."""
973975

tests/resources/test_pinned_comment.py

-1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,3 @@ def test_pincomments(self):
3232
self.jira.pin_comment(comment2.id, False)
3333
pinned_comments = self.jira.pinned_comments(issue)
3434
assert len(pinned_comments) == 0
35-

0 commit comments

Comments
 (0)