Skip to content

Commit 933fe94

Browse files
RitvikSardanamergify[bot]
authored andcommitted
chore: add type hints to api
(cherry picked from commit 4c73593)
1 parent cd6050f commit 933fe94

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

helpdesk/api/doc.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919
def get_list_data(
2020
doctype: str,
2121
# flake8: noqa
22-
filters={},
23-
default_filters={},
22+
filters: dict = {},
23+
default_filters: dict = {},
2424
order_by: str = "modified desc",
25-
page_length=20,
26-
columns=None,
27-
rows=None,
28-
show_customer_portal_fields=False,
29-
view=None,
30-
is_default=False,
31-
):
25+
page_length: int = 20,
26+
columns: list = [],
27+
rows: list = [],
28+
show_customer_portal_fields: bool = False,
29+
view: dict | None = None,
30+
is_default: bool = False,
31+
) -> dict:
3232
is_custom = False
3333

3434
rows = frappe.parse_json(rows or "[]")

0 commit comments

Comments
 (0)