chore: Added return type for DatabaseQuery.execute

This commit is contained in:
Gavin D'souza 2021-09-02 02:12:19 +05:30
parent f0b9eb5f7c
commit ab7dee13cf

View file

@ -2,6 +2,7 @@
# License: MIT. See LICENSE
"""build query for doclistview and return results"""
from typing import List
import frappe.defaults
import frappe.share
from frappe import _
@ -33,7 +34,7 @@ class DatabaseQuery(object):
join='left join', distinct=False, start=None, page_length=None, limit=None,
ignore_ifnull=False, save_user_settings=False, save_user_settings_fields=False,
update=None, add_total_row=None, user_settings=None, reference_doctype=None,
return_query=False, strict=True, pluck=None, ignore_ddl=False):
return_query=False, strict=True, pluck=None, ignore_ddl=False) -> List:
if not ignore_permissions and \
not frappe.has_permission(self.doctype, "select", user=user) and \
not frappe.has_permission(self.doctype, "read", user=user):