Skip to content

Commit 28bb46f

Browse files
committed
fix mypy
1 parent 01cae19 commit 28bb46f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sentry/utils/jwt.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def rsa_key_from_jwk(jwk: str) -> str:
137137
# The return type is verified in our own tests, this is fine.
138138
return key.private_bytes(Encoding.PEM, PrivateFormat.PKCS8, NoEncryption()).decode("UTF-8") # type: ignore
139139
elif isinstance(key, RSAPublicKey):
140-
return key.public_bytes(Encoding.PEM, PublicFormat.SubjectPublicKeyInfo).decode("UTF-8")
140+
# The return type is verified in our own tests, this is fine.
141+
return key.public_bytes(Encoding.PEM, PublicFormat.SubjectPublicKeyInfo).decode("UTF-8") # type: ignore
141142
else:
142143
raise ValueError("Unknown RSA JWK key")

0 commit comments

Comments
 (0)