diff --git a/stubs/jwt/jwt/algorithms.pyi b/stubs/jwt/jwt/algorithms.pyi index fe83e56b6..eb76c6590 100644 --- a/stubs/jwt/jwt/algorithms.pyi +++ b/stubs/jwt/jwt/algorithms.pyi @@ -65,6 +65,8 @@ class RSAAlgorithm(Algorithm[Any]): def __init__(self, hash_alg: Union[HashAlgorithm, Prehashed]) -> None: ... def prepare_key(self, key: Union[bytes, str, RSAPrivateKey, RSAPublicKey]) -> Union[RSAPrivateKey, RSAPublicKey]: ... @staticmethod + def to_jwk(key_obj: Any) -> str: ... + @staticmethod def from_jwk(jwk: Union[str, bytes, Dict[str, Any]]) -> Union[RSAPrivateKey, RSAPublicKey]: ... def sign(self, msg: bytes, key: RSAPrivateKey) -> bytes: ... def verify(self, msg: bytes, key: RSAPublicKey, sig: bytes) -> bool: ...