From df4c46f348d27ee15efc5bd9c97b85fef2edec42 Mon Sep 17 00:00:00 2001 From: Josef Vacha <69599105+JosefVacha@users.noreply.github.com> Date: Sun, 24 May 2026 23:53:48 +0000 Subject: [PATCH] Fix trailing period in SSE comment (F56) --- fastapi/sse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastapi/sse.py b/fastapi/sse.py index 1e2bd86171..30edee0279 100644 --- a/fastapi/sse.py +++ b/fastapi/sse.py @@ -227,7 +227,7 @@ def format_sse_event( return "\n".join(lines).encode("utf-8") -# Keep-alive comment, per the SSE spec recommendation +# Keep-alive comment, per the SSE spec recommendation. KEEPALIVE_COMMENT = b": ping\n\n" # Seconds between keep-alive pings when a generator is idle.