Skip to content

Commit 53622d5

Browse files
committed
Drop None args no longer accepted by ServerSentEvent
httpx2's ServerSentEvent declares id as str defaulting to empty, where httpx-sse allowed str | None. The handler under test checks truthiness, so the default is behaviourally identical.
1 parent d4b5611 commit 53622d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/shared/test_streamable_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1614,7 +1614,7 @@ async def test_handle_sse_event_skips_empty_data() -> None:
16141614
transport = StreamableHTTPTransport(url="http://localhost:8000/mcp")
16151615

16161616
# Create a mock SSE event with empty data (keep-alive ping)
1617-
mock_sse = ServerSentEvent(event="message", data="", id=None, retry=None)
1617+
mock_sse = ServerSentEvent(event="message", data="")
16181618

16191619
# Create a context-aware stream writer (matches StreamWriter type alias)
16201620
write_stream, read_stream = create_context_streams[SessionMessage | Exception](1)

0 commit comments

Comments
 (0)