File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11from enum import Enum
2- from typing import Optional
2+ from typing import Any , Optional
33
44from descope .exceptions import ERROR_TYPE_INVALID_ARGUMENT , AuthException
55
@@ -111,7 +111,7 @@ def __init__(
111111 self ,
112112 stepup : bool = False ,
113113 mfa : bool = False ,
114- revoke_other_sessions : Optional [None ] = None ,
114+ revoke_other_sessions : Optional [bool ] = None ,
115115 custom_claims : Optional [dict ] = None ,
116116 template_options : Optional [
117117 dict
@@ -157,7 +157,7 @@ def validate_refresh_token_provided(
157157class SignUpOptions :
158158 def __init__ (
159159 self ,
160- revoke_other_sessions : Optional [None ] = None ,
160+ revoke_other_sessions : Optional [bool ] = None ,
161161 custom_claims : Optional [dict ] = None ,
162162 template_options : Optional [
163163 dict
@@ -173,7 +173,7 @@ def __init__(
173173
174174
175175def signup_options_to_dict (signup_options : Optional [SignUpOptions ] = None ) -> dict :
176- res = {}
176+ res : dict [ str , Any ] = {}
177177 if signup_options is not None :
178178 if signup_options .customClaims is not None :
179179 res ["customClaims" ] = signup_options .customClaims
You can’t perform that action at this time.
0 commit comments