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

Fixed mypy errors #480

Merged
merged 5 commits into from
Feb 10, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
move properties type definition inside constructor
popenta committed Feb 10, 2025
commit 4062bd23bb5a6e5a91979001fed98d67680dd95e
6 changes: 3 additions & 3 deletions multiversx_sdk_cli/localnet/config_root.py
Original file line number Diff line number Diff line change
@@ -15,10 +15,10 @@


class ConfigRoot(ConfigPart):
shards: RegularShards
metashard: Metashard
def __init__(self) -> None:
self.shards: RegularShards
self.metashard: Metashard

def __init__(self):
self.general = config_default.general
self.software = config_default.software
self.metashard = config_default.metashard

Unchanged files with check annotations Beta

import pytest

Check failure on line 1 in multiversx_sdk_cli/tests/conftest.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 Cannot find implementation or library stub for module named "pytest" [import-not-found] Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/tests/conftest.py:1:1: error: Cannot find implementation or library stub for module named "pytest" [import-not-found]

Check warning on line 1 in multiversx_sdk_cli/tests/conftest.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/tests/conftest.py:1:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
# function executed right after test items collected but before test run
import pytest

Check failure on line 1 in multiversx_sdk_cli/tests/test_playground_proxy.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 Cannot find implementation or library stub for module named "pytest" [import-not-found] Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/tests/test_playground_proxy.py:1:1: error: Cannot find implementation or library stub for module named "pytest" [import-not-found]
import requests
from typing import Any, List
import pytest

Check failure on line 3 in multiversx_sdk_cli/tests/test_native_auth_client.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 Cannot find implementation or library stub for module named "pytest" [import-not-found] Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/tests/test_native_auth_client.py:3:1: error: Cannot find implementation or library stub for module named "pytest" [import-not-found]
from multiversx_sdk_cli.native_auth_client import (
NativeAuthClient,
from pathlib import Path
import pytest

Check failure on line 3 in multiversx_sdk_cli/tests/test_accounts.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 Cannot find implementation or library stub for module named "pytest" [import-not-found] Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/tests/test_accounts.py:3:1: error: Cannot find implementation or library stub for module named "pytest" [import-not-found]
from multiversx_sdk import Account
import logging
from pathlib import Path
import pytest

Check failure on line 4 in multiversx_sdk_cli/tests/test_contracts.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 Cannot find implementation or library stub for module named "pytest" [import-not-found] Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/tests/test_contracts.py:4:1: error: Cannot find implementation or library stub for module named "pytest" [import-not-found]
from Cryptodome.Hash import keccak
from multiversx_sdk import Account, Address, TransactionsFactoryConfig
from typing import Any
import pytest

Check failure on line 3 in multiversx_sdk_cli/tests/test_shared.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 Cannot find implementation or library stub for module named "pytest" [import-not-found] Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/tests/test_shared.py:3:1: error: Cannot find implementation or library stub for module named "pytest" [import-not-found]
from multiversx_sdk_cli.cli_shared import prepare_chain_id_in_args
from multiversx_sdk_cli.errors import ArgumentsNotProvidedError
from pathlib import Path
import pytest

Check failure on line 3 in multiversx_sdk_cli/tests/test_cli_validators.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 Cannot find implementation or library stub for module named "pytest" [import-not-found] Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/tests/test_cli_validators.py:3:1: error: Cannot find implementation or library stub for module named "pytest" [import-not-found]
from multiversx_sdk_cli.cli import main
import pytest

Check failure on line 1 in multiversx_sdk_cli/tests/test_cli_deps.py

GitHub Actions / runner / mypy

[mypy] reported by reviewdog 🐶 Cannot find implementation or library stub for module named "pytest" [import-not-found] Raw Output: /home/runner/work/mx-sdk-py-cli/mx-sdk-py-cli/multiversx_sdk_cli/tests/test_cli_deps.py:1:1: error: Cannot find implementation or library stub for module named "pytest" [import-not-found]
from multiversx_sdk_cli.cli import main