Skip to content

Commit aafd3ec

Browse files
committed
type: Update after resolution of python/mypy#13627
1 parent 5afbdfa commit aafd3ec

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

.github/workflows/ci.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ jobs:
177177
- "3.7"
178178
- "3.8"
179179
- "3.9"
180-
- "3.10.6" # python/mypy#13627
180+
- "3.10"
181181

182182
steps:
183183

@@ -201,9 +201,7 @@ jobs:
201201
git diff && test -z "$(git diff)"
202202
203203
- name: Install type dependencies
204-
run: python -m pip install
205-
mypy
206-
numpy
204+
run: python -m pip install --upgrade -r conf/requirements-type.txt
207205

208206
- name: mypy (typecheck)
209207
run: mypy -p mpi4py

conf/requirements-type.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mypy
2+
numpy
3+

tox.ini

+1-4
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,12 @@ commands =
5757
pylint mpi4py
5858

5959
[testenv:type]
60-
deps =
61-
mypy
62-
numpy
60+
deps = -r{toxinidir}/conf/requirements-type.txt
6361
setenv =
6462
MPICFG=nompi-fast
6563
CFLAGS=-O0
6664
commands =
6765
stubtest mpi4py
68-
mypy --python-version 3.7 -p mpi4py
6966
mypy --python-version 3.8 -p mpi4py
7067
mypy --python-version 3.9 -p mpi4py
7168
mypy --python-version 3.10 -p mpi4py

0 commit comments

Comments
 (0)