From 83de8406727391e5d83764017c01f2905d9a9c0a Mon Sep 17 00:00:00 2001 From: Benoit Date: Sat, 6 Dec 2025 23:03:48 +0100 Subject: [PATCH] Fix Python 3.8 compatibility: use Tuple instead of tuple in type hints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change tuple[...] to Tuple[...] in crud.py line 108 - Add Tuple import from typing - Fixes TypeError: 'type' object is not subscriptable in Python 3.8 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/src/models/crud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/models/crud.py b/backend/src/models/crud.py index 63ed52c..6ab0e99 100644 --- a/backend/src/models/crud.py +++ b/backend/src/models/crud.py @@ -1,5 +1,5 @@ """CRUD operations for audio tracks.""" -from typing import List, Optional, Dict +from typing import List, Optional, Dict, Tuple from uuid import UUID from sqlalchemy.orm import Session from sqlalchemy import or_, and_, func @@ -105,7 +105,7 @@ def get_tracks( has_vocals: Optional[bool] = None, sort_by: str = "analyzed_at", sort_desc: bool = True, -) -> tuple[List[AudioTrack], int]: +) -> Tuple[List[AudioTrack], int]: """Get tracks with filters and pagination. Args: