ruff/crates/ty_python_semantic/src/module_resolver
Andrew Gallant 92eee816ed [ty] Fix file root matching for /
Previously, we would always add `/{*filepath}` as our wildcard to match
descendant paths. But when the root is just `/` (as it can be in tests,
weird environments or in the ty playground), this causes a double `/`
and inhibits most descendant matches.

The regression test added in this commit fails without this fix.
Specifically, it panics because it can't find a file root for
`/project`.

Fixes #1277
2025-10-03 08:18:03 -04:00
..
import-resolution-diagram.dot [ty] Update module resolution diagram to account for typeshed VERSIONS file 2025-07-30 10:34:58 -04:00
import-resolution-diagram.svg [ty] Update module resolution diagram to account for typeshed VERSIONS file 2025-07-30 10:34:58 -04:00
list.rs [ty] Fix file root matching for / 2025-10-03 08:18:03 -04:00
mod.rs [ty] Add naive implementation of completions for unimported symbols 2025-09-03 09:57:26 -04:00
module.rs [ty] Todo-types for os.fdopen, NamedTemporaryFile, and Path.open (#20549) 2025-09-24 15:43:58 +02:00
path.rs [ty] Add search paths info to unresolved import diagnostics (#20040) 2025-08-26 11:01:16 -04:00
resolver.rs [ty] fallback to resolve_real_module in file_to_module (#20461) 2025-09-24 21:15:35 -04:00
testing.rs [ty] Re-arrange "list modules" implementation for Salsa caching 2025-08-20 10:41:47 -04:00
typeshed.rs [ty] Disallow std::env and io methods in most ty crates (#20046) 2025-08-22 11:13:47 -07:00