From 8cb13f922abe50ebd8201753fe20925d8704871b Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Tue, 5 Sep 2023 11:38:26 +0530 Subject: [PATCH] chore(DX): Annotate all local proxies --- frappe/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frappe/__init__.py b/frappe/__init__.py index dd15329106..b676a6abf7 100644 --- a/frappe/__init__.py +++ b/frappe/__init__.py @@ -170,6 +170,8 @@ lang = local("lang") # This if block is never executed when running the code. It is only used for # telling static code analyzer where to find dynamically defined attributes. if TYPE_CHECKING: + from werkzeug.wrappers import Request + from frappe.database.mariadb.database import MariaDBDatabase from frappe.database.postgres.database import PostgresDatabase from frappe.model.document import Document @@ -179,6 +181,15 @@ if TYPE_CHECKING: db: MariaDBDatabase | PostgresDatabase qb: MariaDB | Postgres cache: RedisWrapper + response: _dict + conf: _dict + form_dict: _dict + flags: _dict + request: Request + session: _dict + user: str + flags: _dict + lang: str # end: static analysis hack