chore: fixed type annotations for doc_event methods

This commit is contained in:
Jannat Patel
2026-02-06 17:08:49 +05:30
parent 0e3157c57e
commit f021ddd84c
4 changed files with 5 additions and 5 deletions

View File

@@ -488,7 +488,7 @@ def update_lesson_index(lesson: str, sourceChapter: str, targetChapter: str, idx
update_target_chapter(lesson, targetChapter, idx)
def update_source_chapter(lesson: str, chapter: str, idx: int, hasMoved=False):
def update_source_chapter(lesson: str, chapter: str, idx: int, hasMoved: bool = False):
lessons = frappe.get_all(
"Lesson Reference",
{

View File

@@ -199,7 +199,7 @@ def create_event(eval: dict):
return event
def add_participants(eval: dict, event: frappe._dict):
def add_participants(eval: dict, event: Document):
participants = [eval.member, eval.evaluator]
for participant in participants:
contact_name = frappe.db.get_value("Contact", {"email_id": participant}, "name")
@@ -216,7 +216,7 @@ def add_participants(eval: dict, event: frappe._dict):
).save()
def update_meeting_details(eval: dict, event: frappe._dict, calendar: str):
def update_meeting_details(eval: dict, event: Document, calendar: str):
event.reload()
event.update(
{

View File

@@ -73,7 +73,7 @@ def get_payment_link(
return url
def create_order(payment_gateway: str, payment_details: dict, controller):
def create_order(payment_gateway: str, payment_details: dict, controller: object):
if payment_gateway != "Razorpay":
return

View File

@@ -85,7 +85,7 @@ def set_country_from_ip(login_manager: object = None, user: str = None):
return
def on_login():
def on_login(login_manager):
default_app = frappe.db.get_single_value("System Settings", "default_app")
if default_app == "lms":
frappe.local.response["home_page"] = get_lms_route()