Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kasium committed Sep 23, 2024
1 parent a2ca49a commit b865b07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stubs/jwcrypto/jwcrypto/jwk.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ class JWK(dict[str, Any]):
def thumbprint_uri(self, hname: str = "sha-256"): ...
@classmethod
def from_password(cls, password): ...
def setdefault(self, key: str, default: Incomplete | None = None): ...

class JWKSet(dict[str, Any]):
def add(self, elem) -> None: ...
Expand All @@ -111,3 +112,4 @@ class JWKSet(dict[str, Any]):
def from_json(cls, keyset): ...
def get_key(self, kid): ...
def get_keys(self, kid): ...
def setdefault(self, key: str, default: Incomplete | None = None): ...
2 changes: 2 additions & 0 deletions stubs/jwcrypto/jwcrypto/jwt.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from _typeshed import Incomplete
from collections.abc import Mapping
from typing_extensions import deprecated

from jwcrypto.common import JWException, JWKeyNotFound
from jwcrypto.jwk import JWK, JWKSet
Expand All @@ -22,6 +23,7 @@ class JWTInvalidClaimValue(JWException):
class JWTInvalidClaimFormat(JWException):
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...

@deprecated("")
class JWTMissingKeyID(JWException):
def __init__(self, message: str | None = None, exception: BaseException | None = None) -> None: ...

Expand Down

0 comments on commit b865b07

Please sign in to comment.