Skip to content

Commit 8f9b414

Browse files
committed
merge isinstance param
1 parent 1465d4d commit 8f9b414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cryptojwt/jwk/jwk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def jwk_wrap(key, use="", kid=""):
183183
:param kid: A key id
184184
:return: The Key instance
185185
"""
186-
if isinstance(key, rsa.RSAPublicKey) or isinstance(key, rsa.RSAPrivateKey):
186+
if isinstance(key, (rsa.RSAPublicKey, rsa.RSAPrivateKey)):
187187
kspec = RSAKey(use=use, kid=kid).load_key(key)
188188
elif isinstance(key, str):
189189
kspec = SYMKey(key=key, use=use, kid=kid)

0 commit comments

Comments
 (0)