From 3b1c145e31d4c449ce94cbe3836bd8544690a2f5 Mon Sep 17 00:00:00 2001 From: Johan Lundberg Date: Thu, 19 Feb 2026 11:16:01 +0100 Subject: [PATCH] fix: add type annotation to approved_scopes for type checker --- src/porchlight/oidc/endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/porchlight/oidc/endpoints.py b/src/porchlight/oidc/endpoints.py index fe6e391..ee221ee 100644 --- a/src/porchlight/oidc/endpoints.py +++ b/src/porchlight/oidc/endpoints.py @@ -340,7 +340,7 @@ async def consent_submit(request: Request) -> Response: return HTMLResponse("

Error

Invalid action

", status_code=400) # Allow — collect approved scopes - approved_scopes = form.getlist("scope") + approved_scopes: list[str] = [str(s) for s in form.getlist("scope")] if "openid" not in approved_scopes: approved_scopes = ["openid", *list(approved_scopes)]