diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b36d8c4f8..fce4dcf33 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: diff --git a/pathod/language/actions.py b/pathod/language/actions.py index 3e48f40dd..916cd0aa9 100644 --- a/pathod/language/actions.py +++ b/pathod/language/actions.py @@ -6,7 +6,7 @@ import pyparsing as pp from . import base -@total_ordering +@total_ordering # type: ignore class _Action(base.Token): """ diff --git a/release/cibuild.py b/release/cibuild.py index b2bad9a0c..f2fc5470d 100755 --- a/release/cibuild.py +++ b/release/cibuild.py @@ -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) diff --git a/setup.py b/setup.py index c5edee18c..2b66188e2 100644 --- a/setup.py +++ b/setup.py @@ -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",