INNER CODE UNIT · Python
_validate_cooldown
pypa/pipx · src/pipx/main.py:322
def _validate_cooldown() -> None:
if _COOLDOWN_INVALID:
msg = f"PIPX_COOLDOWN must be unset or a non-negative integer, got {_COOLDOWN_RAW!r}."
raise PipxError(msg)
def _validate_max_logs() -> None:
if _MAX_LOGS_INVALID:
msg = f"PIPX_MAX_LOGS must be unset or a non-negative integer, got {_MAX_LOGS_RAW!r}."
raise PipxError(msg)
def run_pipx_command(args: argparse.Namespace) -> ExitCode:
if "package" in args:
package_is_url(args.package)
package_is_path(args.package)
if "packages" in args:
for package in args.packages: