Skip to content

Commit bc2edf4

Browse files
committed
lint
1 parent 1a8194c commit bc2edf4

File tree

1 file changed

+2
-5
lines changed
  • examples/clients/conformance-auth-client/mcp_conformance_auth_client

1 file changed

+2
-5
lines changed

examples/clients/conformance-auth-client/mcp_conformance_auth_client/__init__.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@
1717
from urllib.parse import parse_qs, urlparse
1818

1919
import httpx
20-
from pydantic import AnyUrl
21-
2220
from mcp import ClientSession
2321
from mcp.client.auth import OAuthClientProvider, TokenStorage
2422
from mcp.client.streamable_http import streamablehttp_client
2523
from mcp.shared.auth import OAuthClientInformationFull, OAuthClientMetadata, OAuthToken
24+
from pydantic import AnyUrl
2625

2726
# Set up logging to stderr (stdout is for conformance test output)
2827
logging.basicConfig(
@@ -97,9 +96,7 @@ async def handle_redirect(self, authorization_url: str) -> None:
9796
else:
9897
raise RuntimeError(f"No redirect location received from {authorization_url}")
9998
else:
100-
raise RuntimeError(
101-
f"Expected redirect response, got {response.status_code} from {authorization_url}"
102-
)
99+
raise RuntimeError(f"Expected redirect response, got {response.status_code} from {authorization_url}")
103100

104101
async def handle_callback(self) -> tuple[str, str | None]:
105102
"""Return the captured auth code and state, then clear them for potential reuse."""

0 commit comments

Comments
 (0)