From 0388ed9e97121a166d7e5161d9e7073870ec3e3b Mon Sep 17 00:00:00 2001 From: jameshod5 Date: Wed, 1 May 2024 14:06:12 +0100 Subject: [PATCH] ruff fixes --- src/api/utils.py | 1 - src/archive/mast.py | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/api/utils.py b/src/api/utils.py index 70f211a..6671dea 100644 --- a/src/api/utils.py +++ b/src/api/utils.py @@ -1,6 +1,5 @@ import typing as t -import sqlmodel from pydantic import create_model from sqlalchemy import func from sqlalchemy.sql.operators import is_, is_not diff --git a/src/archive/mast.py b/src/archive/mast.py index 33e5def..be8528d 100644 --- a/src/archive/mast.py +++ b/src/archive/mast.py @@ -1,9 +1,8 @@ import re import typing as t import uuid -from asyncio import QueueEmpty from dataclasses import dataclass -from multiprocessing import Process, Queue +from multiprocessing import Process from typing import Optional import numpy as np @@ -213,7 +212,7 @@ def _get_dataset_attributes(self, signal_name: str, signal) -> dict: for field in metadata: try: attrs[field] = getattr(signal, field) - except TypeError as exception: + except TypeError: pass for key, attr in attrs.items():