diff --git a/crates/red_knot_module_resolver/src/path.rs b/crates/red_knot_module_resolver/src/path.rs index db9aae91ecce4..e0958dad3f041 100644 --- a/crates/red_knot_module_resolver/src/path.rs +++ b/crates/red_knot_module_resolver/src/path.rs @@ -329,7 +329,7 @@ impl<'a> ModuleResolutionPathRefInner<'a> { TypeshedVersionsQueryResult::DoesNotExist => false, TypeshedVersionsQueryResult::Exists | TypeshedVersionsQueryResult::MaybeExists => match path { FilePathRef::System(path) => resolver.db.system().path_exists(&path.join("__init__.pyi")), - FilePathRef::Vendored(path) => resolver.db.vendored().path_exists(path.join("__init__.pyi")), + FilePathRef::Vendored(path) => resolver.db.vendored().exists(path.join("__init__.pyi")), }, } }