Skip to content

Commit b882921

Browse files
committed
fix: type annotations for test capturing_textiowrapper kwargs
1 parent 7591a78 commit b882921

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/server/test_stdio.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ async def test_stdio_server_default_textiowrapper_newline(monkeypatch: pytest.Mo
108108
monkeypatch.setattr(sys, "stdin", type("S", (), {"buffer": mock_stdin})())
109109
monkeypatch.setattr(sys, "stdout", type("S", (), {"buffer": mock_stdout})())
110110

111-
created_kwargs: list[dict] = []
111+
created_kwargs: list[dict[str, object]] = []
112112
real_textiowrapper = TextIOWrapper
113113

114114
def capturing_textiowrapper(*args: object, **kwargs: object) -> TextIOWrapper:
115-
created_kwargs.append(kwargs)
116-
return real_textiowrapper(*args, **kwargs)
115+
created_kwargs.append(kwargs) # type: ignore[arg-type]
116+
return real_textiowrapper(*args, **kwargs) # type: ignore[arg-type]
117117

118118
with unittest.mock.patch("mcp.server.stdio.TextIOWrapper", side_effect=capturing_textiowrapper):
119119
async with stdio_server() as (read_stream, write_stream):

0 commit comments

Comments
 (0)