diff --git a/micropy/stubs/repo.py b/micropy/stubs/repo.py index d34a42f5..7b50bbe1 100644 --- a/micropy/stubs/repo.py +++ b/micropy/stubs/repo.py @@ -66,7 +66,7 @@ def search(self, query: str) -> Generator[StubRepositoryPackage, None, None]: yield package def resolve_package(self, name: str) -> str: - pkg = next((p for p in self.packages if p.name == name or p.absolute_name == name), None) + pkg = next((p for p in self.packages if p.match_exact(name)), None) if pkg is None: raise exc.StubNotFound(pkg) return pkg.url