Skip to content

Commit 6602b3a

Browse files
committed
merge with recent branch
1 parent 00340ac commit 6602b3a

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

tests/unit/client/test_oauth2_providers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import base64
22
import time
3+
from collections.abc import Iterator
34
from types import SimpleNamespace, TracebackType
4-
from typing import Iterator, cast
5+
from typing import cast
56

67
import httpx
78
import pytest

tests/unit/client/test_stdio_client.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
from __future__ import annotations
22

3-
import anyio
4-
import pytest
53
from types import TracebackType
64
from typing import Any
75

6+
import anyio
7+
import pytest
8+
89
from mcp.client import stdio as stdio_module
910
from mcp.client.stdio import StdioServerParameters, stdio_client
1011

@@ -22,7 +23,7 @@ def __init__(self) -> None:
2223
self.stdin = DummyStdin()
2324
self.stdout = object()
2425

25-
async def __aenter__(self) -> "DummyProcess":
26+
async def __aenter__(self) -> DummyProcess:
2627
return self
2728

2829
async def __aexit__(
@@ -41,7 +42,7 @@ class BrokenPipeStream:
4142
def __init__(self, *args: Any, **kwargs: Any) -> None:
4243
pass
4344

44-
def __aiter__(self) -> "BrokenPipeStream":
45+
def __aiter__(self) -> BrokenPipeStream:
4546
return self
4647

4748
async def __anext__(self) -> str:

tests/unit/server/auth/test_token_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,6 @@ async def test_handle_route_refresh_token_branch() -> None:
153153

154154
assert response.status_code == 200
155155
body = response.body
156-
assert isinstance(body, (bytes, bytearray, memoryview))
156+
assert isinstance(body, bytes | bytearray | memoryview)
157157
payload = json.loads(bytes(body).decode())
158158
assert payload["access_token"] == "refreshed-token"

0 commit comments

Comments
 (0)