fix: add type annotation to approved_scopes for type checker
This commit is contained in:
parent
b8464284c2
commit
3b1c145e31
1 changed files with 1 additions and 1 deletions
|
|
@ -340,7 +340,7 @@ async def consent_submit(request: Request) -> Response:
|
||||||
return HTMLResponse("<h1>Error</h1><p>Invalid action</p>", status_code=400)
|
return HTMLResponse("<h1>Error</h1><p>Invalid action</p>", status_code=400)
|
||||||
|
|
||||||
# Allow — collect approved scopes
|
# 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:
|
if "openid" not in approved_scopes:
|
||||||
approved_scopes = ["openid", *list(approved_scopes)]
|
approved_scopes = ["openid", *list(approved_scopes)]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue