mirror of
https://github.com/astral-sh/ruff.git
synced 2025-12-04 01:36:46 +00:00
[ty] Fix duplicate diagnostics for unresolved module when an import from statement imports multiple members (#17886)
This commit is contained in:
parent
457ec4dddd
commit
2f9992b6ef
17 changed files with 95 additions and 60 deletions
|
|
@ -27,5 +27,8 @@ fn check() {
|
|||
diagnostic.to_range(&workspace).unwrap().start,
|
||||
Position { line: 1, column: 8 }
|
||||
);
|
||||
assert_eq!(diagnostic.message(), "Cannot resolve import `random22`");
|
||||
assert_eq!(
|
||||
diagnostic.message(),
|
||||
"Cannot resolve imported module `random22`"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue