diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py index 3f54b02299b..24f5410019d 100644 --- a/lib/spack/spack/repo.py +++ b/lib/spack/spack/repo.py @@ -805,7 +805,7 @@ def tag_index(self) -> spack.tag.TagIndex: return self._tag_index @property - def patch_index(self) -> spack.patch.PatchCache: + def patch_index(self) -> "spack.patch.PatchCache": """Merged PatchIndex from all Repos in the RepoPath.""" if self._patch_index is None: self._patch_index = spack.patch.PatchCache(repository=self) @@ -1158,7 +1158,7 @@ def tag_index(self) -> spack.tag.TagIndex: return self.index["tags"] @property - def patch_index(self) -> spack.patch.PatchCache: + def patch_index(self) -> "spack.patch.PatchCache": """Index of patches and packages they're defined on.""" return self.index["patches"]