From ebd5a78dc7ed2dac614bd8bc69601017f6835c46 Mon Sep 17 00:00:00 2001 From: Gil Shapira Date: Mon, 25 Nov 2024 14:06:56 +0200 Subject: [PATCH] Update types --- descope/common.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/descope/common.py b/descope/common.py index af543bef..0926894c 100644 --- a/descope/common.py +++ b/descope/common.py @@ -1,5 +1,5 @@ from enum import Enum -from typing import Optional +from typing import Any, Optional from descope.exceptions import ERROR_TYPE_INVALID_ARGUMENT, AuthException @@ -111,7 +111,7 @@ def __init__( self, stepup: bool = False, mfa: bool = False, - revoke_other_sessions: Optional[None] = None, + revoke_other_sessions: Optional[bool] = None, custom_claims: Optional[dict] = None, template_options: Optional[ dict @@ -157,7 +157,7 @@ def validate_refresh_token_provided( class SignUpOptions: def __init__( self, - revoke_other_sessions: Optional[None] = None, + revoke_other_sessions: Optional[bool] = None, custom_claims: Optional[dict] = None, template_options: Optional[ dict @@ -173,7 +173,7 @@ def __init__( def signup_options_to_dict(signup_options: Optional[SignUpOptions] = None) -> dict: - res = {} + res: dict[str, Any] = {} if signup_options is not None: if signup_options.customClaims is not None: res["customClaims"] = signup_options.customClaims