fix: add type hints to conversion factor API

This commit is contained in:
Mihir Kandoi
2026-08-07 22:47:17 +05:30
parent 2cd8e39f04
commit dbfe7e199e

View File

@@ -1453,7 +1453,7 @@ def get_item_details(item_code, company=None):
@frappe.whitelist()
def get_uom_conv_factor(uom, stock_uom):
def get_uom_conv_factor(uom: str | None, stock_uom: str | None):
"""Get UOM conversion factor from uom to stock_uom
e.g. uom = "Kg", stock_uom = "Gram" then returns 1000.0
"""