From a574651accb8cba4267e335b28210b14ff7ae014 Mon Sep 17 00:00:00 2001 From: Shrihari Mahabal Date: Tue, 17 Mar 2026 20:13:27 +0530 Subject: [PATCH] refactor: add type hints to get_boot_translations --- frappe/translate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/translate.py b/frappe/translate.py index 50d5465405..5504b54990 100644 --- a/frappe/translate.py +++ b/frappe/translate.py @@ -133,7 +133,7 @@ def get_messages_for_boot(): @frappe.whitelist(allow_guest=True, methods=["GET"]) -def get_boot_translations(lang=None): +def get_boot_translations(lang: str | None = None) -> dict[str, str]: """Return all translations for the current user's language.""" frappe.local.response_headers["Cache-Control"] = "private, max-age=31536000" return get_all_translations(lang or frappe.local.lang)