From 38ac25241b858fd9c52088d9091cde21acf2b2c6 Mon Sep 17 00:00:00 2001 From: "nash.jung" Date: Wed, 19 Apr 2023 21:43:22 +0900 Subject: [PATCH] enable test for python37 --- tests/test_request_form_file.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_request_form_file.py b/tests/test_request_form_file.py index 52088bfb9f..2b24051c19 100644 --- a/tests/test_request_form_file.py +++ b/tests/test_request_form_file.py @@ -1,5 +1,3 @@ -from typing import Annotated - from fastapi import FastAPI, File, Form from fastapi.testclient import TestClient @@ -7,7 +5,7 @@ app = FastAPI() @app.post("/files/") -async def create_file(token: Annotated[str, Form()], file: Annotated[bytes, File()]): +async def create_file(token: str = Form(), file: bytes = File()): return { "file_size": len(file), "token": token,