Ignore __debuggerskip__ in unused variable checks (#4229)

This commit is contained in:
Charlie Marsh
2023-05-04 12:45:49 -07:00
committed by GitHub
parent b71cc3789f
commit 93cfce674a

View File

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