Skip to content

Commit ec7d9d6

Browse files
lint: fix formatting
1 parent fb105c9 commit ec7d9d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mcp/client/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def is_token_valid(self) -> bool:
131131
and self.current_tokens.access_token
132132
and (not self.token_expiry_time or time.time() <= self.token_expiry_time)
133133
)
134-
134+
135135
def can_refresh_token(self) -> bool:
136136
"""Check if token can be refreshed."""
137137
return bool(self.current_tokens and self.current_tokens.refresh_token and self.client_info)

tests/client/test_auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -720,11 +720,11 @@ async def test_auth_flow_no_unnecessary_retry_after_oauth(self, oauth_provider,
720720

721721
# Send a successful 200 response
722722
response = httpx.Response(200, request=request)
723-
723+
724724
# In the buggy version, this would yield the request AGAIN unconditionally
725725
# In the fixed version, this should end the generator
726726
try:
727-
extra_request = await auth_flow.asend(response)
727+
await auth_flow.asend(response) # extra request
728728
request_yields += 1
729729
# If we reach here, the bug is present
730730
pytest.fail(

0 commit comments

Comments
 (0)