From c9eab9ee7faf5c84267a45bdb4b18c965757266a Mon Sep 17 00:00:00 2001 From: Erik De Smedt Date: Tue, 23 Apr 2024 19:54:25 +0200 Subject: [PATCH] clnvm: Mypy fixes --- libs/cln-version-manager/clnvm/cli.py | 3 +-- libs/cln-version-manager/clnvm/cln_version_manager.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/cln-version-manager/clnvm/cli.py b/libs/cln-version-manager/clnvm/cli.py index 0ecae95cc..4a977f798 100644 --- a/libs/cln-version-manager/clnvm/cli.py +++ b/libs/cln-version-manager/clnvm/cli.py @@ -10,9 +10,8 @@ import clnvm from clnvm.cln_version_manager import ClnVersionManager, VersionDescriptor -def configure_logging(): +def configure_logging() -> None: dirname, _ = os.path.split(__file__) - breakpoint() logging.config.fileConfig(Path(dirname) / "logging.conf") # Handle the optional import and provide a nice error message if it fails diff --git a/libs/cln-version-manager/clnvm/cln_version_manager.py b/libs/cln-version-manager/clnvm/cln_version_manager.py index 54d5cc16b..40773e651 100644 --- a/libs/cln-version-manager/clnvm/cln_version_manager.py +++ b/libs/cln-version-manager/clnvm/cln_version_manager.py @@ -188,7 +188,7 @@ def get(self, cln_version: VersionDescriptor, force: bool = False) -> NodeVersio root_path=target_path, ) - def _download(self, cln_version: VersionDescriptor, target_path: Path, verify_tag=False) -> None: + def _download(self, cln_version: VersionDescriptor, target_path: Path, verify_tag:bool = False) -> None: """Downloads the provided cln_version""" tag = cln_version.tag logger.info("Downloading version %s to %s", tag, target_path)