Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -732,11 +732,11 @@ def _check_update_(self):
except Exception as e:
self.log.warning(e)

def __del__(self):
def __del__(self) -> None:
"""Destructor for JIRA instance."""
self.close()

def close(self):
def close(self) -> None:
session = getattr(self, "_session", None)
if session is not None:
try:
Expand Down
6 changes: 3 additions & 3 deletions jira/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ def get_field(self, field_name: str) -> Any:
else:
return getattr(self.fields, field_name)

def add_field_value(self, field: str, value: str):
def add_field_value(self, field: str, value: str) -> None:
"""Add a value to a field that supports multiple values, without resetting the existing values.

This should work with: labels, multiple checkbox lists, multiple select
Expand All @@ -904,15 +904,15 @@ def add_field_value(self, field: str, value: str):
"""
super().update(fields={"update": {field: [{"add": value}]}})

def delete(self, deleteSubtasks=False):
def delete(self, deleteSubtasks=False) -> None:
"""Delete this issue from the server.

Args:
deleteSubtasks (bool): True to also delete subtasks. If any are present the Issue won't be deleted (Default: ``False``)
"""
super().delete(params={"deleteSubtasks": deleteSubtasks})

def permalink(self):
def permalink(self) -> str:
"""Get the URL of the issue, the browsable one not the REST one.

Returns:
Expand Down
Loading