From 593cc980e910e790406b205b29f2032a75ac347a Mon Sep 17 00:00:00 2001 From: Luke Mino-Altherr Date: Fri, 6 Feb 2026 15:34:37 -0800 Subject: [PATCH] Fix type annotation: use Callable[[str], bool] instead of callable Amp-Thread-ID: https://ampcode.com/threads/T-019c354d-d627-7233-864d-1e6f7a4b8caa Co-authored-by: Amp --- app/assets/api/upload.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/api/upload.py b/app/assets/api/upload.py index 56295d19e..7f90cec78 100644 --- a/app/assets/api/upload.py +++ b/app/assets/api/upload.py @@ -1,5 +1,6 @@ import os import uuid +from typing import Callable from aiohttp import web @@ -30,7 +31,7 @@ def normalize_and_validate_hash(s: str) -> str: async def parse_multipart_upload( request: web.Request, - check_hash_exists: callable, + check_hash_exists: Callable[[str], bool], ) -> ParsedUpload: """ Parse a multipart/form-data upload request.