Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
dbernstein committed Dec 11, 2024
1 parent 5c942dd commit 94d8de0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/palace/manager/celery/tasks/opds_odl.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import datetime
from dataclasses import dataclass
from typing import Any

from celery import shared_task
from sqlalchemy import delete, select
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 94d8de0

Please sign in to comment.