From 8598ca9a9dde03c493f388065a20e38a776628bf Mon Sep 17 00:00:00 2001 From: Srujan N Date: Mon, 22 Sep 2025 22:39:11 +0000 Subject: [PATCH] fix: remove unnecessary whitelist from internal helper function --- .../doctype/bank_statement_import/bank_statement_import.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/erpnext/accounts/doctype/bank_statement_import/bank_statement_import.py b/erpnext/accounts/doctype/bank_statement_import/bank_statement_import.py index bb61eb094c0..fc1e370693f 100644 --- a/erpnext/accounts/doctype/bank_statement_import/bank_statement_import.py +++ b/erpnext/accounts/doctype/bank_statement_import/bank_statement_import.py @@ -111,8 +111,7 @@ class BankStatementImport(DataImport): return None -@frappe.whitelist() -def preprocess_mt940_content(content): +def preprocess_mt940_content(content: str) -> str: """Preprocess MT940 content to fix statement number format issues. The MT940 standard expects statement numbers to be maximum 5 digits,