From 1995fcfdd81bb91a0c798befd0ae6809600379e8 Mon Sep 17 00:00:00 2001 From: ruthra kumar Date: Tue, 21 Apr 2026 13:52:59 +0530 Subject: [PATCH] fix: incorrect type hint --- erpnext/accounts/doctype/pos_invoice/pos_invoice.py | 4 ++-- erpnext/stock/get_item_details.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/accounts/doctype/pos_invoice/pos_invoice.py b/erpnext/accounts/doctype/pos_invoice/pos_invoice.py index 265a350d6a2..2925def8408 100644 --- a/erpnext/accounts/doctype/pos_invoice/pos_invoice.py +++ b/erpnext/accounts/doctype/pos_invoice/pos_invoice.py @@ -755,7 +755,7 @@ class POSInvoice(SalesInvoice): return profile @frappe.whitelist() - def set_missing_values(self, for_validate: bool = False): + def set_missing_values(self, for_validate: bool | None = False): profile = self.set_pos_fields(for_validate) if not self.debit_to: @@ -1027,7 +1027,7 @@ def get_pos_reserved_qty_from_table(child_table, item_code, warehouse): @frappe.whitelist() -def make_sales_return(source_name: str, target_doc: Document | None = None): +def make_sales_return(source_name: str, target_doc: Document | str | None = None): from erpnext.controllers.sales_and_purchase_return import make_return_doc return make_return_doc("POS Invoice", source_name, target_doc) diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index b05559e6ca1..d0e69887b4b 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -60,7 +60,7 @@ def _preprocess_ctx(ctx): def get_item_details( ctx: ItemDetailsCtx | str, doc: Document | str | None = None, - for_validate: bool = False, + for_validate: bool | None = False, overwrite_warehouse: bool = True, ): """