Summary.
jwt.decode can accept cryptography.hazmat.backends.openssl.rsa._RSAPublicKey or private key or string.
Expected Result
Allow to pass not only string.
Actual Result
Warning from mypy while only string is expected but actually public key is expected.
Reproduction Steps
jwk_set = PyJWKSet.from_json(data)
jwt.decode("", key= jwk_set.keys[0].key);
System Information
{
"cryptography": {
"version": "39.0.0"
},
"implementation": {
"name": "CPython",
"version": "3.8.10"
},
"platform": {
"release": "10",
"system": "Windows"
},
"pyjwt": {
"version": "2.6.0"
}
}