oidc-exchange: ignore a nested function

Signed-off-by: William Woodruff <william@trailofbits.com>
This commit is contained in:
William Woodruff 2023-08-09 15:12:44 -04:00
parent 8bdd0cc2a0
commit e5f0690e91
No known key found for this signature in database

View file

@ -146,7 +146,7 @@ def render_claims(token: str) -> str:
_, payload, _ = token.split(".", 2)
claims = json.loads(base64.urlsafe_b64decode(payload))
def _get(name: str) -> str:
def _get(name: str) -> str: # noqa: WPS430
return claims.get(name, "MISSING")
return _RENDERED_CLAIMS.format(