Fix RET504 example in docs (#4260)
This commit is contained in:
@@ -150,16 +150,12 @@ impl AlwaysAutofixableViolation for ImplicitReturn {
|
||||
/// ```python
|
||||
/// def foo():
|
||||
/// bar = 1
|
||||
/// # some code that not using `bar`
|
||||
/// print('test')
|
||||
/// return bar
|
||||
/// ```
|
||||
///
|
||||
/// Use instead:
|
||||
/// ```python
|
||||
/// def foo():
|
||||
/// # some code that not using `bar`
|
||||
/// print('test')
|
||||
/// return 1
|
||||
/// ```
|
||||
#[violation]
|
||||
|
||||
Reference in New Issue
Block a user