mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-23 13:12:22 +01:00
refactor(quality_management): type annotations for whitelisted methods
This commit is contained in:
@@ -122,7 +122,12 @@ class QualityProcedure(NestedSet):
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_children(doctype, parent=None, parent_quality_procedure=None, is_root=False):
|
||||
def get_children(
|
||||
doctype: str,
|
||||
parent: str | None = None,
|
||||
parent_quality_procedure: str | None = None,
|
||||
is_root: bool = False,
|
||||
):
|
||||
if parent is None or parent == "All Quality Procedures":
|
||||
parent = ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user