Skip to content

Commit

Permalink
deps: update mypy check.
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Jul 28, 2021
1 parent 626297c commit 708b5ca
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,11 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.8'
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy==0.800
pip install .
pip install -r requirements-dev.txt
- name: Run mypy check
run: mypy -p stellar_sdk

Expand All @@ -80,7 +79,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.9'

- name: Install dependencies
run: |
Expand Down
3 changes: 3 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ sphinx-autodoc-typehints = "*"
pytest-timeout = "*"
pytest-asyncio = "*"
pytest-httpserver = "*"
types-requests = "*"
types-toml = "*"
mypy = "==0.910"

[packages]
pynacl = "*"
Expand Down
62 changes: 61 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ jinja2==3.0.1; python_version >= '3.6'
markupsafe==2.0.1; python_version >= '3.6'
mnemonic==0.20
multidict==5.1.0; python_version >= '3.6'
mypy-extensions==0.4.3
mypy==0.910
packaging==21.0; python_version >= '3.6'
pluggy==0.13.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
py==1.10.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
Expand Down Expand Up @@ -55,6 +57,8 @@ sphinxcontrib-qthelp==1.0.3; python_version >= '3.5'
sphinxcontrib-serializinghtml==1.1.5; python_version >= '3.5'
stellar-base-sseclient==0.0.21
toml==0.10.2
types-requests==2.25.0
types-toml==0.1.3
typing-extensions==3.10.0.0
urllib3==1.26.6; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'
werkzeug==2.0.1; python_version >= '3.6'
Expand Down
2 changes: 1 addition & 1 deletion stellar_sdk/sep/mnemonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, language: Union[str, Language] = Language.ENGLISH) -> None:

super().__init__(language)

def to_seed(self, mnemonic: str, passphrase: str = "", index: int = 0) -> bytes:
def to_seed(self, mnemonic: str, passphrase: str = "", index: int = 0) -> bytes: # type: ignore[override]
if not self.check(mnemonic):
raise ValueError(
"Invalid mnemonic, please check if the mnemonic is correct, "
Expand Down

0 comments on commit 708b5ca

Please sign in to comment.