Skip to content

Commit

Permalink
fix: type checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Jan 23, 2025
1 parent 5e6278a commit 92d40ee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion press/api/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ def fail_and_redeploy(name: str, dc_name: str):


@frappe.whitelist(allow_guest=True)
def confirm_bench_transfer(key):
def confirm_bench_transfer(key: str):
if team_change := frappe.db.get_value("Team Change", {"key": key}):
team_change = frappe.get_doc("Team Change", team_change)
team_change.transfer_completed = True
Expand Down
2 changes: 1 addition & 1 deletion press/api/marketplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,7 +1196,7 @@ def get_discount_percent(plan, discount=0.0):


@frappe.whitelist(allow_guest=True)
def login_via_token(token, team, site):
def login_via_token(token: str, team: str, site: str):
if not token or not isinstance(token, str):
frappe.throw("Invalid Token")

Expand Down
2 changes: 1 addition & 1 deletion press/api/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ def send_change_team_request(name, team_mail_id, reason):


@frappe.whitelist(allow_guest=True)
def confirm_site_transfer(key):
def confirm_site_transfer(key: str):
if team_change := frappe.db.get_value("Team Change", {"key": key}):
team_change = frappe.get_doc("Team Change", team_change)
team_change.transfer_completed = True
Expand Down

0 comments on commit 92d40ee

Please sign in to comment.