Skip to content

Commit 8cdac3d

Browse files
authored
Fix pyright error and replace wildcard import with explicit imports (modelcontextprotocol#1532)
1 parent f161149 commit 8cdac3d

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/mcp/client/auth/__init__.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,20 @@
44
Implements authorization code flow with PKCE and automatic token refresh.
55
"""
66

7-
from mcp.client.auth.oauth2 import * # noqa: F403
7+
from mcp.client.auth.oauth2 import (
8+
OAuthClientProvider,
9+
OAuthFlowError,
10+
OAuthRegistrationError,
11+
OAuthTokenError,
12+
PKCEParameters,
13+
TokenStorage,
14+
)
15+
16+
__all__ = [
17+
"OAuthClientProvider",
18+
"OAuthFlowError",
19+
"OAuthRegistrationError",
20+
"OAuthTokenError",
21+
"PKCEParameters",
22+
"TokenStorage",
23+
]

src/mcp/client/auth/extensions/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)