Skip to content

Commit aca8ba7

Browse files
authored
[flake8-bandit] Fix correct example for S308 (#21128)
<!-- Thank you for contributing to Ruff/ty! To help us out with reviewing, please consider the following: - Does this pull request include a summary of the change? (See below.) - Does this pull request include a descriptive title? (Please prefix with `[ty]` for ty pull requests.) - Does this pull request include references to any relevant issues? --> ## Summary Fixed the incorrect import example in the "correct exmaple" <!-- What's the purpose of the change? What does it do, and why? --> ## Test Plan 🤷 <!-- How was it tested? -->
1 parent 7045898 commit aca8ba7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/ruff_linter/src/rules/flake8_bandit/rules/suspicious_function_call.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ impl Violation for SuspiciousEvalUsage {
375375
///
376376
///
377377
/// def render_username(username):
378-
/// return django.utils.html.format_html("<i>{}</i>", username) # username is escaped.
378+
/// return format_html("<i>{}</i>", username) # username is escaped.
379379
/// ```
380380
///
381381
/// ## References

0 commit comments

Comments
 (0)