mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 21:34:57 +00:00
Fix RET504
example in docs (#4260)
This commit is contained in:
parent
539af34f58
commit
a95bafefb0
1 changed files with 0 additions and 4 deletions
|
@ -150,16 +150,12 @@ impl AlwaysAutofixableViolation for ImplicitReturn {
|
||||||
/// ```python
|
/// ```python
|
||||||
/// def foo():
|
/// def foo():
|
||||||
/// bar = 1
|
/// bar = 1
|
||||||
/// # some code that not using `bar`
|
|
||||||
/// print('test')
|
|
||||||
/// return bar
|
/// return bar
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// Use instead:
|
/// Use instead:
|
||||||
/// ```python
|
/// ```python
|
||||||
/// def foo():
|
/// def foo():
|
||||||
/// # some code that not using `bar`
|
|
||||||
/// print('test')
|
|
||||||
/// return 1
|
/// return 1
|
||||||
/// ```
|
/// ```
|
||||||
#[violation]
|
#[violation]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue