Skip to content

Commit 198df5b

Browse files
committed
fix mypy errors
1 parent 0966879 commit 198df5b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

multiversx_sdk_cli/cli_shared.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def prepare_account(args: Any):
305305

306306
def _get_address_hrp(args: Any) -> str:
307307
"""If proxy is provided, fetch the hrp from the network, otherwise get the hrp from config"""
308-
hrp = ""
308+
hrp: str = ""
309309

310310
if hasattr(args, "proxy") and args.proxy:
311311
hrp = _get_hrp_from_proxy(args)
@@ -322,15 +322,15 @@ def _get_hrp_from_proxy(args: Any) -> str:
322322
network_provider_config = config.get_config_for_network_providers()
323323
proxy = ProxyNetworkProvider(url=args.proxy, config=network_provider_config)
324324
network_config = proxy.get_network_config()
325-
hrp = network_config.raw.get("erd_address_hrp", "")
325+
hrp: str = network_config.raw.get("erd_address_hrp", "")
326326
return hrp
327327

328328

329329
def _get_hrp_from_api(args: Any) -> str:
330330
network_provider_config = config.get_config_for_network_providers()
331331
proxy = ApiNetworkProvider(url=args.api, config=network_provider_config)
332332
network_config = proxy.get_network_config()
333-
hrp = network_config.raw.get("erd_address_hrp", "")
333+
hrp: str = network_config.raw.get("erd_address_hrp", "")
334334
return hrp
335335

336336

multiversx_sdk_cli/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_value(name: str) -> str:
5757
return value
5858

5959

60-
def get_address_hrp():
60+
def get_address_hrp() -> str:
6161
return get_value("default_address_hrp")
6262

6363

0 commit comments

Comments
 (0)