Skip to content

Commit e00a6f7

Browse files
committed
Mypy check fix.
1 parent fefc931 commit e00a6f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/event_gate_lambda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import logging
2121
import os
2222
import sys
23-
from typing import Any, Dict
23+
from typing import Any, Dict, cast
2424

2525
import boto3
2626
import jwt
@@ -100,7 +100,7 @@
100100
raise KeyError(f"No public keys found in {TOKEN_PUBLIC_KEYS_URL} endpoint response")
101101

102102
TOKEN_PUBLIC_KEYS: list[RSAPublicKey] = [
103-
serialization.load_der_public_key(base64.b64decode(raw_key)) for raw_key in raw_keys
103+
cast(RSAPublicKey, serialization.load_der_public_key(base64.b64decode(raw_key))) for raw_key in raw_keys
104104
]
105105
logger.debug("Loaded %d TOKEN_PUBLIC_KEYS", len(TOKEN_PUBLIC_KEYS))
106106
except (requests.RequestException, ValueError, KeyError, UnsupportedAlgorithm) as exc:

0 commit comments

Comments
 (0)