Skip to content

Commit ebd5a78

Browse files
committed
Update types
1 parent 362643b commit ebd5a78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

descope/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from enum import Enum
2-
from typing import Optional
2+
from typing import Any, Optional
33

44
from 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(
157157
class 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

175175
def 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

0 commit comments

Comments
 (0)