mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
Ignore globals when checking local variable names (#800)
This commit is contained in:
parent
801c76037f
commit
66ae4db6cd
5 changed files with 42 additions and 35 deletions
|
@ -79,8 +79,10 @@ pub enum BindingKind {
|
|||
Annotation,
|
||||
Argument,
|
||||
Assignment,
|
||||
// TODO(charlie): This seems to be a catch-all.
|
||||
Binding,
|
||||
LoopVar,
|
||||
Global,
|
||||
Builtin,
|
||||
ClassDefinition,
|
||||
Definition,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue