Skip to content

Commit

Permalink
fix: make typing more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
sysid committed Jun 15, 2024
1 parent c699767 commit 4844ce8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sse_starlette/sse.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def ensure_bytes(data: Union[bytes, dict, ServerSentEvent, Any], sep: str) -> by
return ServerSentEvent(str(data), sep=sep).encode()


Content = Union[str, bytes, dict, ServerSentEvent]
Content = Union[
str, bytes, dict, ServerSentEvent, Any
] # https://github.com/sysid/sse-starlette/issues/101#issue-2340755790
SyncContentStream = Iterator[Content]
AsyncContentStream = AsyncIterable[Content]
ContentStream = Union[AsyncContentStream, SyncContentStream]
Expand Down
1 change: 1 addition & 0 deletions tests/integration/frozen_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
connections: lsof -i :8000
buffers: netstat -m
"""

import anyio
import uvicorn
from starlette.applications import Starlette
Expand Down

0 comments on commit 4844ce8

Please sign in to comment.