File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
import sys
3
3
from contextlib import asynccontextmanager
4
4
from pathlib import Path
5
- from typing import Literal
5
+ from typing import Literal , TextIO
6
6
7
7
import anyio
8
8
import anyio .lowlevel
@@ -87,7 +87,7 @@ class StdioServerParameters(BaseModel):
87
87
88
88
89
89
@asynccontextmanager
90
- async def stdio_client (server : StdioServerParameters ):
90
+ async def stdio_client (server : StdioServerParameters , errlog : TextIO = sys . stderr ):
91
91
"""
92
92
Client transport for stdio: this will connect to a server by spawning a
93
93
process and communicating with it over stdin/stdout.
@@ -104,7 +104,7 @@ async def stdio_client(server: StdioServerParameters):
104
104
process = await anyio .open_process (
105
105
[server .command , * server .args ],
106
106
env = server .env if server .env is not None else get_default_environment (),
107
- stderr = sys . stderr ,
107
+ stderr = errlog ,
108
108
cwd = server .cwd ,
109
109
)
110
110
You can’t perform that action at this time.
0 commit comments