Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8905e9e

Browse files
Fix CI mypy command on free-threaded Python
When the version is represented as `3.13t`, the `--python-version` option needs an operand of `3.13`, not `3.13t`. (This, and the fix here, will automatically apply to later threaded Pythons, such as 3.14t, too.)
1 parent 5b098ff commit 8905e9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎.github/workflows/pythonpackage.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ jobs:
9797

9898
- name: Check types with mypy
9999
run: |
100-
mypy --python-version=${{ matrix.python-version }}
100+
mypy --python-version="${PYTHON_VERSION%t}"
101101
env:
102102
MYPY_FORCE_COLOR: "1"
103103
TERM: "xterm-256color" # For color: https://github.com/python/mypy/issues/13817
104+
PYTHON_VERSION: ${{ matrix.python-version }}
104105
# With new versions of mypy new issues might arise. This is a problem if there is
105106
# nobody able to fix them, so we have to ignore errors until that changes.
106107
continue-on-error: true

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /