Skip to content

Commit 2c6c909

Browse files
lint: fix formatting
1 parent b2ec459 commit 2c6c909

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
@@ -721,11 +721,11 @@ async def test_auth_flow_no_unnecessary_retry_after_oauth(self, oauth_provider,
721721

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

0 commit comments

Comments
 (0)