Fix `RET504` example in docs (#4260)

This commit is contained in:
Charlie Marsh 2023-05-06 16:56:52 -04:00 committed by GitHub
parent 539af34f58
commit a95bafefb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -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]