mirror of https://github.com/astral-sh/ruff
[`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? -->
This commit is contained in:
parent
7045898ffa
commit
aca8ba76a4
|
|
@ -375,7 +375,7 @@ impl Violation for SuspiciousEvalUsage {
|
||||||
///
|
///
|
||||||
///
|
///
|
||||||
/// def render_username(username):
|
/// def render_username(username):
|
||||||
/// return django.utils.html.format_html("<i>{}</i>", username) # username is escaped.
|
/// return format_html("<i>{}</i>", username) # username is escaped.
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// ## References
|
/// ## References
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue