mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-19 20:24:27 +00:00
[ty] Dont provide goto definition for definitions which are not reexported in builtins (#21127)
This commit is contained in:
parent
d38a5292d2
commit
7045898ffa
2 changed files with 18 additions and 0 deletions
|
|
@ -615,6 +615,7 @@ pub fn definitions_for_name<'db>(
|
|||
};
|
||||
find_symbol_in_scope(db, builtins_scope, name_str)
|
||||
.into_iter()
|
||||
.filter(|def| def.is_reexported(db))
|
||||
.flat_map(|def| {
|
||||
resolve_definition(
|
||||
db,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue