Skip to content

Commit ac8e6e4

Browse files
gate import in conftest
1 parent 46659c5 commit ac8e6e4

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import anyio
21
import json
32
import os
43
import socket
@@ -668,8 +667,8 @@ def stdio(
668667
get_mcp_command_payload,
669668
):
670669
async def inner(server, method: str, params, request_id: str):
671-
read_stream_writer, read_stream = anyio.create_memory_object_stream(0)
672-
write_stream, write_stream_reader = anyio.create_memory_object_stream(0)
670+
read_stream_writer, read_stream = create_memory_object_stream(0) # type: ignore
671+
write_stream, write_stream_reader = create_memory_object_stream(0) # type: ignore
673672

674673
result = {}
675674

@@ -696,7 +695,7 @@ async def simulate_client(tg, result):
696695

697696
tg.cancel_scope.cancel()
698697

699-
async with anyio.create_task_group() as tg:
698+
async with create_task_group() as tg: # type: ignore
700699
tg.start_soon(run_server)
701700
tg.start_soon(simulate_client, tg, result)
702701

0 commit comments

Comments
 (0)