From 1fe60a83dad67955e325e97590b8d1546af2eace Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 8 Jan 2026 15:08:02 -0600 Subject: Fix return type declaration for the function. --- uploader/background_jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uploader/background_jobs.py b/uploader/background_jobs.py index 6b14d02..61e57f7 100644 --- a/uploader/background_jobs.py +++ b/uploader/background_jobs.py @@ -126,7 +126,7 @@ def job_error(job_id: uuid.UUID): return render_template("jobs/job-not-found.html", job_id=job_id) -def make_datetime_formatter(dtformat: str = "") -> str: +def make_datetime_formatter(dtformat: str = "") -> Callable[[str], str]: """Make a datetime formatter with the provided `dtformat`""" def __formatter__(val: str) -> str: dt = datetime.datetime.fromisoformat(val) -- cgit 1.4.1