Skip to content

Commit b4cc4ea

Browse files
committed
fix: update sync_labels function parameter type hint to support object
1 parent f72dcef commit b4cc4ea

File tree

1 file changed

+1
-1
lines changed
  • frappe_gmail_thread/frappe_gmail_thread/doctype/gmail_thread

1 file changed

+1
-1
lines changed

frappe_gmail_thread/frappe_gmail_thread/doctype/gmail_thread/gmail_thread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def before_save(self):
9191

9292

9393
@frappe.whitelist(methods=["POST"])
94-
def sync_labels(account_name: str, should_save: bool = True):
94+
def sync_labels(account_name: str | object, should_save: bool = True):
9595
if isinstance(account_name, str):
9696
gmail_account = frappe.get_doc("Gmail Account", account_name)
9797
else:

0 commit comments

Comments
 (0)