From 6f2082eb8cbdcd32a7c26573645f969a767e0730 Mon Sep 17 00:00:00 2001 From: AshNicolus Date: Tue, 26 May 2026 18:41:29 +0530 Subject: [PATCH] Fix ormat_sse_event docstring rendering of \n\n terminator --- fastapi/sse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/sse.py b/fastapi/sse.py index 901d824964..d67781e775 100644 --- a/fastapi/sse.py +++ b/fastapi/sse.py @@ -188,7 +188,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] = []