From cb171851416f7f895ccf8bc582b8b6995c71e4d0 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 3 Dec 2024 16:21:17 -0600 Subject: Fix some linting and mypy issues. --- uploader/jobs.py | 5 +++-- uploader/phenotypes/views.py | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'uploader') diff --git a/uploader/jobs.py b/uploader/jobs.py index 270028a..90e3dc2 100644 --- a/uploader/jobs.py +++ b/uploader/jobs.py @@ -10,9 +10,10 @@ from datetime import timedelta from typing import Union, Optional from redis import Redis -from functional_tools import take from flask import current_app as app +from functional_tools import take + JOBS_PREFIX = "jobs" class JobNotFound(Exception): @@ -138,7 +139,7 @@ def job_errors( prefix: str, job_id: Union[str, uuid.UUID], count: int = 100 -) -> tuple[dict, ...]: +) -> list: """Fetch job errors""" return take( ( diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py index 74de3ea..9d1c024 100644 --- a/uploader/phenotypes/views.py +++ b/uploader/phenotypes/views.py @@ -3,7 +3,6 @@ import sys import uuid import json from pathlib import Path -from typing import Union from functools import wraps from logging import INFO, ERROR, DEBUG, FATAL, CRITICAL, WARNING -- cgit v1.2.3