From bfba73653fac6b2ef8a4d29416c2b8f91c8b9c26 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Mon, 9 Feb 2026 15:40:02 +0530 Subject: [PATCH] fix(DX): Boilerplate defaults for type checks and exports (#36871) Add sane defaults for new apps. --- frappe/utils/boilerplate.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frappe/utils/boilerplate.py b/frappe/utils/boilerplate.py index 89d91862c4..937bd5cbdd 100644 --- a/frappe/utils/boilerplate.py +++ b/frappe/utils/boilerplate.py @@ -639,7 +639,10 @@ app_license = "{app_license}" # ] # Automatically update python controller files with type annotations for this app. -# export_python_type_annotations = True +export_python_type_annotations = True + +# Require all whitelisted methods to have type annotations +require_type_annotated_api_methods = True # default_log_clearing_doctypes = {{ # "Logging DocType Name": 30 # days to retain logs