Merge pull request #14109 from vrslev/fix-qb-autocomplete

feat: Query Builder autocomplete hack
This commit is contained in:
mergify[bot] 2021-09-02 09:50:18 +00:00 committed by GitHub
commit 5b78407789
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):