Merge pull request #52970 from ljain112/fix-missing-type-hint

fix: update type hint for party parameter to allow None in get_party_details and set_taxes functions
This commit is contained in:
ruthra kumar
2026-02-26 13:32:43 +05:30
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -135,7 +135,7 @@ class TaxRule(Document):
@frappe.whitelist() @frappe.whitelist()
def get_party_details(party: str, party_type: str, args: dict | None = None): def get_party_details(party: str | None, party_type: str, args: dict | None = None):
out = {} out = {}
billing_address, shipping_address = None, None billing_address, shipping_address = None, None
if args: if args:

View File

@@ -719,7 +719,7 @@ def get_address_tax_category(
@frappe.whitelist() @frappe.whitelist()
def set_taxes( def set_taxes(
party: str, party: str | None,
party_type: str, party_type: str,
posting_date: str | date | None, posting_date: str | date | None,
company: str | None, company: str | None,