Skip to content

Commit

Permalink
Ensure modern mypy versions are used for testing (GH-89)
Browse files Browse the repository at this point in the history
Recursive type hints need mypy 0.991 at the very least. There are other
speed and stability improvements in the 1.x series such that it's best
to require the latest version here.
  • Loading branch information
mjpieters committed May 4, 2023
1 parent 42a4c42 commit f3539fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
tests_require = [
"coverage[toml]>=7.2.5",
"pytest>=7.3.0",
"pytest-mypy-plugins>=1.10.1"
"pytest-mypy-plugins>=1.10.1",
"mypy>=1.2.0"
]

with open("README.md") as fh:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ commands =
[testenv:mypy]
basepython = python3.10
deps =
mypy
mypy>=1.2.0
skip_install = true
commands =
mypy lxml-stubs

0 comments on commit f3539fd

Please sign in to comment.