Skip to content

Commit

Permalink
Add typing annotations to .environ.clean_pkg_cache
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Bargull <[email protected]>
Co-authored-by: Ken Odegard <[email protected]>
  • Loading branch information
mbargull and kenodegard committed Feb 14, 2024
1 parent 34552d5 commit 6db894e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion conda_build/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
reset_context,
root_dir,
)
from .config import Config
from .deprecations import deprecated
from .exceptions import BuildLockError, DependencyNeedsBuildingError
from .features import feature_list
Expand Down Expand Up @@ -1269,7 +1270,7 @@ def get_pkg_dirs_locks(dirs, config):
return [utils.get_lock(folder, timeout=config.timeout) for folder in dirs]


def clean_pkg_cache(dist, config):
def clean_pkg_cache(dist: str, config: Config) -> None:
with utils.LoggingContext(logging.DEBUG if config.debug else logging.WARN):
locks = get_pkg_dirs_locks([config.bldpkgs_dir] + pkgs_dirs, config)
with utils.try_acquire_locks(locks, timeout=config.timeout):
Expand Down

0 comments on commit 6db894e

Please sign in to comment.