Skip to content

Commit 5611cdb

Browse files
committed
Fix
1 parent 0528c4a commit 5611cdb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,12 @@ jobs:
8383
# TODO: (2025-05-10) This is a bad hack to work around mypy crashing
8484
# when running on Python 3.14. See https://github.com/python/mypy/pull/19020.
8585
if [[ "${{ matrix.python-version }}" == "3.13.2" ]]; then
86-
MYPY_PY_VERSION="3.14-dev"
86+
MYPY_PY_VERSION="3.14"
87+
else
88+
# python-version can sometimes be pinned to a specific version or to "-dev", but
89+
# mypy understands only X.Y version numbers.
90+
MYPY_PY_VERSION=$(echo ${{ matrix.python-version }} | cut -d - -f 1 | cut -d . -f 1-2)
8791
fi
88-
89-
# python-version can sometimes be pinned to a specific version or to "-dev", but
90-
# mypy understands only X.Y version numbers.
91-
MYPY_PY_VERSION=$(echo ${{ matrix.python-version }} | cut -d - -f 1 | cut -d . -f 1-2)
9292
python ./tests/mypy_test.py --platform=${{ matrix.platform }} --python-version=${MYPY_PY_VERSION}
9393
9494
regression-tests:

0 commit comments

Comments
 (0)