Skip to content

Commit 6df10c6

Browse files
[pylint] Fix docs example that produced different output (PLW0603) (#18216)
1 parent bdf4884 commit 6df10c6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/ruff_linter/src/rules/pylint/rules/global_statement.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ use crate::checkers::ast::Checker;
3131
///
3232
///
3333
/// def foo():
34+
/// var = 10
3435
/// print(var)
35-
/// return 10
36+
/// return var
3637
///
3738
///
3839
/// var = foo()

0 commit comments

Comments
 (0)