diff options
author | Frederick Muriuki Muriithi | 2024-12-03 16:21:17 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-12-03 16:22:11 -0600 |
commit | cb171851416f7f895ccf8bc582b8b6995c71e4d0 (patch) | |
tree | 9cdf165d38036e5f92b3f8c90c8cfb660fcc7b1b /uploader | |
parent | a7accfc7883b77a16e8609cf6153354b4ad941ec (diff) | |
download | gn-uploader-cb171851416f7f895ccf8bc582b8b6995c71e4d0.tar.gz |
Fix some linting and mypy issues.
Diffstat (limited to 'uploader')
-rw-r--r-- | uploader/jobs.py | 5 | ||||
-rw-r--r-- | uploader/phenotypes/views.py | 1 |
2 files changed, 3 insertions, 3 deletions
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 |