chore: Added return type for DatabaseQuery.execute
This commit is contained in:
parent
f0b9eb5f7c
commit
ab7dee13cf
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue