Skip to content

Commit

Permalink
Ignore __debuggerskip__ in unused variable checks (#4229)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliermarsh committed May 4, 2023
1 parent b71cc37 commit 93cfce6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/ruff/src/rules/pyflakes/rules/unused_variable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ pub fn unused_variable(checker: &mut Checker, scope: ScopeId) {
&& name != &"__tracebackhide__"
&& name != &"__traceback_info__"
&& name != &"__traceback_supplement__"
&& name != &"__debuggerskip__"
{
let mut diagnostic = Diagnostic::new(
UnusedVariable {
Expand Down

0 comments on commit 93cfce6

Please sign in to comment.