From 94d8de07586b352a10ddc24e02ae8f231fcfa60e Mon Sep 17 00:00:00 2001 From: Daniel Bernstein Date: Wed, 11 Dec 2024 10:19:42 -0800 Subject: [PATCH] Fix mypy --- src/palace/manager/celery/tasks/opds_odl.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/palace/manager/celery/tasks/opds_odl.py b/src/palace/manager/celery/tasks/opds_odl.py index 49e60050e..03d8a1b45 100644 --- a/src/palace/manager/celery/tasks/opds_odl.py +++ b/src/palace/manager/celery/tasks/opds_odl.py @@ -1,6 +1,5 @@ import datetime from dataclasses import dataclass -from typing import Any from celery import shared_task from sqlalchemy import delete, select @@ -45,7 +44,7 @@ def remove_expired_holds_for_collection( ) expired_holds = db.scalars(select_query).all() - expired_hold_events: list[dict[str, Any]] = [] + expired_hold_events: list[CirculationEventData] = [] for hold in expired_holds: expired_hold_events.append( CirculationEventData( @@ -118,7 +117,7 @@ def recalculate_holds_for_licensepool( waiting = holds[reserved:] updated = 0 - events: list[dict[str, Any]] = [] + events: list[CirculationEventData] = [] # These holds have a copy reserved for them. for hold in ready: