Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mypy annotations (issues with older Python) #365

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading