Browse Source

📝 Fix `format_sse_event` docstring rendering of `\n\n` terminator (#15613)

Co-authored-by: Yurii Motov <[email protected]>
Co-authored-by: Sebastián Ramírez <[email protected]>
pull/16096/head
AshNicolus 1 week ago
committed by GitHub
parent
commit
12242c4fba
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      fastapi/sse.py

2
fastapi/sse.py

@ -207,7 +207,7 @@ def format_sse_event(
) -> bytes:
"""Build SSE wire-format bytes from **pre-serialized** data.
The result always ends with `\n\n` (the event terminator).
The result always ends with `\\n\\n` (the event terminator).
"""
lines: list[str] = []

Loading…
Cancel
Save