diff --git a/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi b/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi index c0783698a279..dd73ff4eecb4 100644 --- a/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi +++ b/stubs/Authlib/authlib/jose/rfc7516/jwe.pyi @@ -29,6 +29,6 @@ class JsonWebEncryption: def parse_json(obj) -> dict[Incomplete, Incomplete]: ... def get_header_alg(self, header) -> JWEAlgorithmBase: ... def get_header_enc(self, header) -> JWEEncAlgorithm: ... - def get_header_zip(self, header) -> JWEZipAlgorithm: ... + def get_header_zip(self, header) -> JWEZipAlgorithm | None: ... def prepare_key(alg, header, key): ... diff --git a/stubs/Authlib/authlib/oidc/core/claims.pyi b/stubs/Authlib/authlib/oidc/core/claims.pyi index f9a24cfbcfa6..e0f86f9e5437 100644 --- a/stubs/Authlib/authlib/oidc/core/claims.pyi +++ b/stubs/Authlib/authlib/oidc/core/claims.pyi @@ -33,4 +33,4 @@ class UserInfo(dict[str, object]): def filter(self, scope: str) -> UserInfo: ... def __getattr__(self, key): ... -def get_claim_cls_by_response_type(response_type) -> type: ... +def get_claim_cls_by_response_type(response_type) -> type | None: ...