Skip to content

Commit 27bf23c

Browse files
authored
Merge pull request #2040 from EliahKagan/mypy-free-threaded
Fix CI `mypy` command on free-threaded Python
2 parents 5b098ff + b45ae86 commit 27bf23c

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}" # Version only, with no "t" for free-threaded.
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy