fix: add missing type hints

This commit is contained in:
Shllokkk
2026-02-18 22:15:39 +05:30
parent a6bb44b421
commit 85c8296548
2 changed files with 7 additions and 3 deletions

View File

@@ -770,7 +770,7 @@ def make_purchase_receipt(
@frappe.whitelist()
def make_purchase_invoice(
source_name: str, target_doc: str | Document | None = None, args: str | None = None
source_name: str, target_doc: str | Document | None = None, args: str | dict | None = None
):
return get_mapped_purchase_invoice(source_name, target_doc, args=args)
@@ -904,7 +904,11 @@ def make_inter_company_sales_order(source_name: str, target_doc: str | Document
@frappe.whitelist()
def make_subcontracting_order(
source_name: str, target_doc=None, save=False, submit: bool = False, notify: bool = False
source_name: str,
target_doc: str | Document | None = None,
save: bool = False,
submit: bool = False,
notify: bool = False,
):
if not is_po_fully_subcontracted(source_name):
target_doc = get_mapped_subcontracting_order(source_name, target_doc)

View File

@@ -461,7 +461,7 @@ def make_supplier_quotation_from_rfq(
# This method is used to make supplier quotation from supplier's portal.
@frappe.whitelist()
def create_supplier_quotation(doc: str | dict):
def create_supplier_quotation(doc: str | Document | dict):
if isinstance(doc, str):
doc = json.loads(doc)