Skip to content

Commit fc0517f

Browse files
committed
style(oauth): format the step-up scope check
pre-commit ruff-format wants this condition on one line.
1 parent fc80795 commit fc0517f

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/mcp/client/auth/oauth2.py‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,7 @@ async def _auth_flow(self, request: httpx2.Request) -> AsyncGenerator[httpx2.Req
657657

658658
response = yield request
659659

660-
step_up = (
661-
response.status_code == 403 and extract_field_from_www_auth(response, "error") == "insufficient_scope"
662-
)
660+
step_up = response.status_code == 403 and extract_field_from_www_auth(response, "error") == "insufficient_scope"
663661

664662
if response.status_code == 401 or step_up:
665663
async with self.context.lock:

0 commit comments

Comments
 (0)