From a9b4f2b341e79393e0cb59d1ebeb0a54fe9238a2 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Sun, 6 Oct 2024 09:25:18 -0700 Subject: [PATCH] Type delete such that it can be used as input to prune. --- pex/cache/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pex/cache/data.py b/pex/cache/data.py index 0ae291db9..7097dbd23 100644 --- a/pex/cache/data.py +++ b/pex/cache/data.py @@ -318,7 +318,7 @@ def _delete_venvs(venv_dirs): @contextmanager def delete(pex_dirs): - # type: (Iterable[Union[UnzipDir, VenvDirs]]) -> Iterator[Iterator[AtomicCacheDir]] + # type: (Iterable[Union[UnzipDir, VenvDirs]]) -> Iterator[Iterator[Union[BootstrapDir, UserCodeDir, InstalledWheelDir]]] yield dir_dependencies(pex_dirs) _delete_zipapps(unzip_dirs=[pex_dir for pex_dir in pex_dirs if isinstance(pex_dir, UnzipDir)])