From 68f04d4cda42241b9b3494ac7265783a4c88be88 Mon Sep 17 00:00:00 2001 From: jdawang Date: Wed, 3 Jan 2024 15:11:06 -0700 Subject: [PATCH] Fix mypy issues --- edgetest/core.py | 2 +- edgetest/utils.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/edgetest/core.py b/edgetest/core.py index 3b00b9e..04dda7e 100644 --- a/edgetest/core.py +++ b/edgetest/core.py @@ -185,7 +185,7 @@ def setup( else: # Install lower bounds of package(s) LOG.info( - f"Installing lower bounds of packages in {self.envname}: {', '.join(self.lower)}" + f"Installing lower bounds of packages in {self.envname}: {', '.join(self.lower)}" # type:ignore ) try: self.hook.run_install_lower( diff --git a/edgetest/utils.py b/edgetest/utils.py index 303ce23..0143fc3 100644 --- a/edgetest/utils.py +++ b/edgetest/utils.py @@ -354,12 +354,12 @@ def parse_toml( if ( "lower" in output["envs"][-1] and "project" in config - and "dependencies" in config["project"] + and "dependencies" in config["project"] # type: ignore ): output["envs"][-1]["lower"] = "\n".join( f"{pkg_name}=={lower_bound}" for pkg_name, lower_bound in get_lower( - dict(config["project"])["dependencies"] + dict(config["project"])["dependencies"] # type: ignore ).items() if _isin_case_dashhyphen_ins( pkg_name, output["envs"][-1]["lower"].split("\n") @@ -374,7 +374,7 @@ def parse_toml( if len(output["envs"]) == 0: if config.get("project").get("dependencies"): # type: ignore output = convert_requirements( - requirements="\n".join(config["project"]["dependencies"]), + requirements="\n".join(config["project"]["dependencies"]), # type: ignore conf=output, # type: ignore # noqa: E501 ) elif requirements: