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