Skip to content

Commit b473eac

Browse files
authored
[Authlib] get_header_zip() and get_claim_cls_by_response_type() can return None (#16883)
1 parent 1ef946e commit b473eac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎stubs/Authlib/authlib/jose/rfc7516/jwe.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ class JsonWebEncryption:
3030
def parse_json(obj) -> dict[Incomplete, Incomplete]: ...
3131
def get_header_alg(self, header) -> JWEAlgorithmBase: ...
3232
def get_header_enc(self, header) -> JWEEncAlgorithm: ...
33-
def get_header_zip(self, header) -> JWEZipAlgorithm: ...
33+
def get_header_zip(self, header) -> JWEZipAlgorithm | None: ...
3434

3535
def prepare_key(alg, header, key): ...

‎stubs/Authlib/authlib/oidc/core/claims.pyi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ class UserInfo(dict[str, object]):
3333
def filter(self, scope: str) -> UserInfo: ...
3434
def __getattr__(self, key): ...
3535

36-
def get_claim_cls_by_response_type(response_type) -> type: ...
36+
def get_claim_cls_by_response_type(response_type) -> type | None: ...

0 commit comments

Comments
 (0)