From 97f868a54e9f7005e66b30866e5d488f317a29db Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Thu, 18 Jul 2024 09:24:24 -0700 Subject: [PATCH] avoid circular import of `spack.patch` Signed-off-by: Todd Gamblin --- lib/spack/spack/repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"]