Skip to content

Commit

Permalink
Update the type for issue in add_comment & transition_issue for bette…
Browse files Browse the repository at this point in the history
…r type hints
  • Loading branch information
dvaerum committed May 12, 2023
1 parent 2e15c82 commit ab61918
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jira/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,7 @@ def comment(
@translate_resource_args
def add_comment(
self,
issue: str | int,
issue: str | int | Issue,
body: str,
visibility: dict[str, str] | None = None,
is_internal: bool = False,
Expand Down Expand Up @@ -2146,7 +2146,7 @@ def transitions(self, issue: str | int, id: str | None = None, expand=None):
]

def find_transitionid_by_name(
self, issue: str | int, transition_name: str
self, issue: str | int | Issue, transition_name: str
) -> int | None:
"""Get a transitionid available on the specified issue to the current user.
Expand All @@ -2171,7 +2171,7 @@ def find_transitionid_by_name(
@translate_resource_args
def transition_issue(
self,
issue: str | int,
issue: str | int | Issue,
transition: str,
fields: dict[str, Any] | None = None,
comment: str | None = None,
Expand Down

0 comments on commit ab61918

Please sign in to comment.