update mypy and pin version

This commit is contained in:
Maximilian Hils 2020-04-02 11:40:50 +02:00
parent 3046a628fd
commit 19aa7aeeb7
4 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- run: pip install mypy
- run: pip install mypy==0.770
- run: mypy .
test:
strategy:

View File

@ -6,7 +6,7 @@ import pyparsing as pp
from . import base
@total_ordering
@total_ordering # type: ignore
class _Action(base.Token):
"""

View File

@ -474,7 +474,7 @@ def build_wininstaller(be: BuildEnviron): # pragma: no cover
IB_SETUP.with_suffix(".tmp"),
reporthook=report
)
shutil.move(IB_SETUP.with_suffix(".tmp"), IB_SETUP)
shutil.move(str(IB_SETUP.with_suffix(".tmp")), str(IB_SETUP))
click.echo("Install InstallBuilder...")
subprocess.run([str(IB_SETUP), "--mode", "unattended", "--unattendedmodeui", "none"], check=True)

View File

@ -94,7 +94,7 @@ setup(
"asynctest>=0.12.0",
"flake8>=3.7.8,<3.8",
"Flask>=1.0,<1.2",
"mypy>=0.740,<0.741",
"mypy>=0.740,<0.771",
"parver>=0.1,<2.0",
"pytest-asyncio>=0.10.0,<0.11",
"pytest-cov>=2.7.1,<3",