fix: update type hint for party parameter to allow None in get_party_details and set_taxes functions

This commit is contained in:
ljain112
2026-02-25 18:01:24 +05:30
parent 7ef187b1eb
commit f220960d91
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,