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 <amp@ampcode.com>
This commit is contained in:
Luke Mino-Altherr
2026-02-06 15:34:37 -08:00
parent 72b6c3f065
commit 593cc980e9

View File

@@ -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.