Skip to content

Commit 44e549c

Browse files
committed
add comment for get_attachment_content
1 parent 6c40df2 commit 44e549c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

atlassian/jira.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ def get_attachment_content(self, attachment_id: T_id) -> bytes:
367367
:return: content as bytes
368368
"""
369369
attachment_info = self.get_attachment(attachment_id)
370+
# Type check for mypy. If attachment is not found, or unavailable, it would raise HTTPError anyways.
370371
if attachment_info is None:
371372
return b""
372373
url = attachment_info["content"]

0 commit comments

Comments
 (0)