From 3f1de86de85c58a25401f225f97b21d504a59e65 Mon Sep 17 00:00:00 2001 From: Piotr Kaznowski Date: Fri, 27 Oct 2023 23:32:39 +0200 Subject: [PATCH] Updated signature --- dzira/dzira.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dzira/dzira.py b/dzira/dzira.py index f214d91..1ef001f 100644 --- a/dzira/dzira.py +++ b/dzira/dzira.py @@ -213,7 +213,7 @@ def add_worklog(jira: JIRA, issue, time=None, comment=None, seconds=None, **_) - ) -def get_worklog(jira: JIRA, issue: str, worklog_id: str, **_) -> Worklog: +def get_worklog(jira: JIRA, issue: str, worklog_id: str | int, **_) -> Worklog: if work_log := jira.worklog(issue=issue, id=str(worklog_id)): return work_log raise Exception(f"could not find worklog {worklog_id} for issue {issue!r}")