Skip to content

Commit ea5910d

Browse files
committed
fix(auth): remove unnecessary pragma no cover annotations
1 parent 310d939 commit ea5910d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/mcp/client/auth/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ async def handle_auth_metadata_response(response: Response) -> tuple[bool, OAuth
337337
content = await response.aread()
338338
asm = OAuthMetadata.model_validate_json(content)
339339
return True, asm
340-
except ValidationError: # pragma: no cover
340+
except ValidationError:
341341
return True, None
342342
elif response.status_code < 400 or response.status_code >= 500:
343343
return False, None # Non-4XX error, stop trying

tests/client/test_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self):
4444
self._client_info: OAuthClientInformationFull | None = None
4545

4646
async def get_tokens(self) -> OAuthToken | None:
47-
return self._tokens # pragma: no cover
47+
return self._tokens
4848

4949
async def set_tokens(self, tokens: OAuthToken) -> None:
5050
self._tokens = tokens

0 commit comments

Comments
 (0)