From a9549d865fc6a9d68e98ad584bcc9455ed6cfade Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrei=20B=C4=83ncioiu?= Date: Mon, 27 Nov 2023 11:04:09 +0200 Subject: [PATCH] Fix mypy adnotations (issues with older Python). --- multiversx_sdk_cli/projects/templates.py | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/multiversx_sdk_cli/projects/templates.py b/multiversx_sdk_cli/projects/templates.py index bfd9fdb2..dcf57185 100644 --- a/multiversx_sdk_cli/projects/templates.py +++ b/multiversx_sdk_cli/projects/templates.py @@ -1,6 +1,6 @@ import logging from pathlib import Path -from typing import Union +from typing import List, Union from multiversx_sdk_cli import myprocess from multiversx_sdk_cli.dependencies.install import install_module @@ -35,7 +35,7 @@ def _ensure_dependencies_installed(self): logger.info("Checking if the necessarry dependencies are installed.") install_module("rust") - def _prepare_args_to_list_templates(self) -> list[str]: + def _prepare_args_to_list_templates(self) -> List[str]: args = ["sc-meta", "templates"] if self.tag: @@ -43,7 +43,7 @@ def _prepare_args_to_list_templates(self) -> list[str]: return args - def _prepare_args_to_create_new_contract_from_template(self) -> list[str]: + def _prepare_args_to_create_new_contract_from_template(self) -> List[str]: args = ["sc-meta", "new", "--template", self.template, "--path", str(self.path)] if self.name: diff --git a/pyproject.toml b/pyproject.toml index 1b9477cb..2d4cab4f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "multiversx-sdk-cli" -version = "9.0.0" +version = "9.0.1" authors = [ { name="MultiversX" }, ]