Skip to content

Commit

Permalink
Update types
Browse files Browse the repository at this point in the history
  • Loading branch information
shilgapira committed Nov 25, 2024
1 parent 362643b commit ebd5a78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions descope/common.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ebd5a78

Please sign in to comment.