Skip to content

Commit 25ca0ea

Browse files
committed
Tell mypy to assume Python 3.9
This should help catch incompatible code faster.
1 parent 6de6411 commit 25ca0ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
python -m pip install --upgrade pip
6363
python -m pip install ".[lint]"
6464
- name: Type check with mypy
65-
run: mypy --warn-redundant-casts --warn-unused-ignores breathe tests
65+
run: mypy --warn-redundant-casts --warn-unused-ignores --python-version 3.9 breathe tests
6666

6767
twine:
6868
runs-on: ubuntu-latest

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@ black:
4444

4545
.PHONY: type-check
4646
type-check:
47-
mypy --warn-redundant-casts --warn-unused-ignores breathe tests
47+
mypy --warn-redundant-casts --warn-unused-ignores --python-version 3.9 breathe tests

0 commit comments

Comments
 (0)