[red-knot] resolve source/stubs over namespace packages (#13254)

This commit is contained in:
Simon 2024-09-06 13:14:26 +02:00 committed by GitHub
parent a4ebe7d344
commit 594dee1b0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 52 additions and 17 deletions

View file

@ -59,6 +59,10 @@ impl ModulePath {
self.relative_path.push(component);
}
pub(crate) fn pop(&mut self) -> bool {
self.relative_path.pop()
}
#[must_use]
pub(super) fn is_directory(&self, resolver: &ResolverContext) -> bool {
let ModulePath {