Skip to content

Commit 05f9c2f

Browse files
committed
fixup
1 parent e3b7d23 commit 05f9c2f

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

crates/ty_python_semantic/src/module_resolver/resolver.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,11 +581,6 @@ fn resolve_name(db: &dyn Db, name: &ModuleName, mode: ModuleResolveMode) -> Opti
581581
let stub_name = name.to_stub_package();
582582
let mut is_namespace_package = false;
583583

584-
tracing::info!("search paths");
585-
for search_path in search_paths(db) {
586-
tracing::info!(" - {search_path}");
587-
}
588-
589584
for search_path in search_paths(db) {
590585
// When a builtin module is imported, standard module resolution is bypassed:
591586
// the module name always resolves to the stdlib module,

crates/ty_python_semantic/src/program.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ pub struct SearchPathSettings {
179179
/// List of site packages paths to use.
180180
pub site_packages_paths: Vec<SystemPathBuf>,
181181

182+
/// Option path to the real stdlib on the system, and not some instance of typeshed.
183+
///
184+
/// We should ideally only ever use this for things like goto-definition,
185+
/// where typeshed isn't the right answer.
182186
pub real_stdlib_path: Option<SystemPathBuf>,
183187
}
184188

0 commit comments

Comments
 (0)