From db77e8139404ee422b245c207c90733bfdffc33a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 29 Oct 2025 23:59:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20spoiler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fastapi/params.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fastapi/params.py b/fastapi/params.py index 3b428ee12..2dc04be14 100644 --- a/fastapi/params.py +++ b/fastapi/params.py @@ -5,7 +5,7 @@ from typing import Any, Callable, Dict, List, Optional, Sequence, Union from fastapi.openapi.models import Example from pydantic.fields import FieldInfo -from typing_extensions import Annotated, Literal, deprecated +from typing_extensions import Annotated, deprecated from ._compat import ( PYDANTIC_V2, @@ -766,7 +766,6 @@ class File(Form): # type: ignore[misc] class Depends: dependency: Optional[Callable[..., Any]] = None use_cache: bool = True - scope: Literal["function", "request", "lifespan"] = "request" @dataclass