avoid circular import of spack.patch

Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
Todd Gamblin 2024-07-18 09:24:24 -07:00
parent 4005ae8651
commit 97f868a54e
No known key found for this signature in database
GPG Key ID: C16729F1AACF66C6

View File

@ -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"]