[ty] Improve debug messages when imports fail (#21555)

This commit is contained in:
Alex Waygood
2025-11-21 13:45:57 +00:00
committed by GitHub
parent 1af318534a
commit 54dba15088
2 changed files with 30 additions and 4 deletions

View File

@@ -40,6 +40,8 @@ error[unresolved-import]: Cannot resolve imported module `....foo`
2 |
3 | stat = add(10, 15)
|
help: The module can be resolved if the number of leading dots is reduced
help: Did you mean `...foo`?
info: Searched in the following paths during module resolution:
info: 1. /src (first-party code)
info: 2. vendored://stdlib (stdlib typeshed stubs vendored by ty)