Skip to content

Commit

Permalink
Fix mypy adnotations (issues with older Python).
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Nov 27, 2023
1 parent 46da74d commit a9549d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions multiversx_sdk_cli/projects/templates.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -35,15 +35,15 @@ 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:
args.extend(["--tag", self.tag])

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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "multiversx-sdk-cli"
version = "9.0.0"
version = "9.0.1"
authors = [
{ name="MultiversX" },
]
Expand Down

0 comments on commit a9549d8

Please sign in to comment.