From 6f114b1c198a1553b3f666358188e757bdb5933e Mon Sep 17 00:00:00 2001 From: Lev Date: Thu, 2 Sep 2021 12:21:34 +0300 Subject: [PATCH] chore: Query Builder autocomplete hack --- frappe/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frappe/__init__.py b/frappe/__init__.py index 6d79cbd760..ea983e7f02 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -140,7 +140,11 @@ lang = local("lang") if typing.TYPE_CHECKING: from frappe.database.mariadb.database import MariaDBDatabase from frappe.database.postgres.database import PostgresDatabase + from pypika import Query + db: typing.Union[MariaDBDatabase, PostgresDatabase] + qb: Query + # end: static analysis hack def init(site, sites_path=None, new_site=False):