ruff/crates/ruff_python_semantic/src
Charlie Marsh 6706ae4828
Respect scoping rules when identifying builtins (#6468)
## Summary

Our `is_builtin` check did a naive walk over the parent scopes; instead,
it needs to (e.g.) skip symbols in a class scope if being called outside
of the class scope itself.

Closes https://github.com/astral-sh/ruff/issues/6466.

## Test Plan

`cargo test`
2023-08-10 10:20:09 -04:00
..
analyze Rename JoinedStr to FString in the AST (#6379) 2023-08-07 17:33:17 +00:00
binding.rs Fix false-positive in submodule resolution (#6435) 2023-08-09 02:36:39 +00:00
context.rs Remove separate ReferenceContext enum (#4631) 2023-05-24 15:12:38 +00:00
definition.rs Use dedicated AST nodes on MemberKind (#6374) 2023-08-07 17:17:58 +00:00
expressions.rs Use separate structs for expression and statement tracking (#6351) 2023-08-07 15:27:42 +00:00
globals.rs Remove async AST node variants for with, for, and def (#6369) 2023-08-07 16:36:02 +00:00
lib.rs Use separate structs for expression and statement tracking (#6351) 2023-08-07 15:27:42 +00:00
model.rs Respect scoping rules when identifying builtins (#6468) 2023-08-10 10:20:09 -04:00
reference.rs Remove parser dependency from ruff-python-ast (#6096) 2023-07-26 17:47:22 +02:00
scope.rs Remove async AST node variants for with, for, and def (#6369) 2023-08-07 16:36:02 +00:00
star_import.rs Move StarImport to its own module (#5186) 2023-06-20 13:12:46 -04:00
statements.rs Remove RefEquality (#6393) 2023-08-07 16:04:50 +00:00