Skip to content

Commit 701e4d7

Browse files
fix(test): mark unused stream variables with underscore
Pyright reports error when variables are assigned but never used. Changed (read_stream, write_stream) to (_, _) to indicate these are intentionally unused in the race condition test.
1 parent 157a3e8 commit 701e4d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/client/test_stdio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ async def test_stdio_client_quick_exit_race_condition():
659659

660660
# This should not raise an ExceptionGroup or BrokenResourceError
661661
# The background tasks should handle stream closure gracefully
662-
async with stdio_client(server_params) as (read_stream, write_stream):
662+
async with stdio_client(server_params) as (_, _):
663663
# Immediately exit - triggers cleanup while subprocess is still outputting
664664
pass
665665

0 commit comments

Comments
 (0)