diff --git a/tests/test_compat_params_v1.py b/tests/test_compat_params_v1.py index 9877c3130..6b055d2c2 100644 --- a/tests/test_compat_params_v1.py +++ b/tests/test_compat_params_v1.py @@ -1,4 +1,4 @@ -from typing import Optional +from typing import List, Optional import pytest from fastapi import FastAPI @@ -99,7 +99,7 @@ def upload_file( @app.post("/upload-multiple/") def upload_multiple_files( - files: Annotated[list[bytes], File()], + files: Annotated[List[bytes], File()], note: Annotated[str, Form()] = "", ): return {