ruff/crates/ruff_python_semantic
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
..
src Respect scoping rules when identifying builtins (#6468) 2023-08-10 10:20:09 -04:00
Cargo.toml Pull in RustPython parser (#6099) 2023-07-27 09:29:11 +00:00