From aca8ba76a489f2ec43958868254de2ce14c8e9d2 Mon Sep 17 00:00:00 2001 From: Jonas Vacek Date: Wed, 29 Oct 2025 20:03:56 +0100 Subject: [PATCH] [`flake8-bandit`] Fix correct example for `S308` (#21128) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Fixed the incorrect import example in the "correct exmaple" ## Test Plan 🤷 --- .../src/rules/flake8_bandit/rules/suspicious_function_call.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs b/crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs index 0cc1ebe4ed..423b7287bb 100644 --- a/crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs +++ b/crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs @@ -375,7 +375,7 @@ impl Violation for SuspiciousEvalUsage { /// /// /// def render_username(username): -/// return django.utils.html.format_html("{}", username) # username is escaped. +/// return format_html("{}", username) # username is escaped. /// ``` /// /// ## References