diff --git a/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi b/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi index efbcc909b08e..97ca89d0c872 100644 --- a/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi +++ b/stubs/Authlib/authlib/jose/rfc7517/jwk.pyi @@ -1,5 +1,6 @@ -from _typeshed import Incomplete -from collections.abc import Collection, Mapping +from _typeshed import Incomplete, ReadableBuffer +from collections.abc import Collection, Iterable, Mapping +from typing import SupportsBytes, SupportsIndex from authlib.jose.rfc7517 import Key, KeySet @@ -8,6 +9,12 @@ class JsonWebKey: @classmethod def generate_key(cls, kty, crv_or_size, options=None, is_private: bool = False): ... @classmethod - def import_key(cls, raw: Mapping[str, object], options: Mapping[str, object] | None = None) -> Key: ... + def import_key( + cls, + raw: ( + str | bytes | float | Iterable[SupportsIndex] | SupportsIndex | SupportsBytes | ReadableBuffer | Mapping[str, object] + ), + options: Mapping[str, object] | None = None, + ) -> Key: ... @classmethod def import_key_set(cls, raw: str | Collection[str] | dict[str, object]) -> KeySet: ...