pre-commit-ci-lite[bot]
3 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
fastapi/sse.py
|
|
@ -1,10 +1,9 @@ |
|
|
from typing import Annotated, Any, Generic |
|
|
from typing import Annotated, Any, Generic |
|
|
|
|
|
|
|
|
from typing_extensions import TypeVar |
|
|
|
|
|
|
|
|
|
|
|
from annotated_doc import Doc |
|
|
from annotated_doc import Doc |
|
|
from pydantic import AfterValidator, BaseModel, ConfigDict, Field, model_validator |
|
|
from pydantic import AfterValidator, BaseModel, ConfigDict, Field, model_validator |
|
|
from starlette.responses import StreamingResponse |
|
|
from starlette.responses import StreamingResponse |
|
|
|
|
|
from typing_extensions import TypeVar |
|
|
|
|
|
|
|
|
Data = TypeVar("Data", default=Any) |
|
|
Data = TypeVar("Data", default=Any) |
|
|
"""Type variable for the `data` payload of a `ServerSentEvent`. |
|
|
"""Type variable for the `data` payload of a `ServerSentEvent`. |
|
|
|