Skip to content

Commit 4d0d030

Browse files
committed
Fix linting
1 parent 958d4fa commit 4d0d030

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

descope/management/user.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def invite(
229229
] = None, # send invite via text message, default is according to project settings
230230
additional_login_ids: Optional[List[str]] = None,
231231
sso_app_ids: Optional[List[str]] = None,
232-
template_id: str = None,
232+
template_id: str = "",
233233
) -> dict:
234234
"""
235235
Create a new user and invite them via an email / text message.
@@ -1654,7 +1654,7 @@ def _compose_create_body(
16541654
send_sms: Optional[bool],
16551655
additional_login_ids: Optional[List[str]],
16561656
sso_app_ids: Optional[List[str]] = None,
1657-
template_id: str = None,
1657+
template_id: str = "",
16581658
) -> dict:
16591659
body = User._compose_update_body(
16601660
login_id=login_id,
@@ -1683,7 +1683,7 @@ def _compose_create_body(
16831683
body["sendMail"] = send_mail
16841684
if send_sms is not None:
16851685
body["sendSMS"] = send_sms
1686-
if template_id is not None:
1686+
if template_id != "":
16871687
body["templateId"] = template_id
16881688
return body
16891689

0 commit comments

Comments
 (0)