Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions stubs/Authlib/authlib/jose/rfc7517/jwk.pyi
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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: ...
Loading