Skip to content

Commit f5d0c54

Browse files
committed
Enable the use of Mypy 0.900+
Mypy would complain about the missing `types-mock` package, which it now needs to perform accurate type checking and despite `ignore_missing_imports` set to `True`: tests/test_ipython.py:3: error: Library stubs not installed for "mock" (or incompatible with Python 3.9) tests/test_ipython.py:3: note: Hint: "python3 -m pip install types-mock" tests/test_ipython.py:3: note: (or run "mypy --install-types" to install all missing stub packages) tests/test_ipython.py:3: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports tests/test_main.py:7: error: Library stubs not installed for "mock" (or incompatible with Python 3.9) Found 2 errors in 2 files (checked 15 source files)
1 parent 28dbb23 commit f5d0c54

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ pytest-cov
77
pytest>=3.9
88
sh>=1.09
99
tox
10+
types-mock
1011
wheel
1112
twine
1213
portray

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ commands = coverage run --parallel -m pytest {posargs}
2424
skip_install = true
2525
deps =
2626
flake8
27-
mypy<0.900
27+
mypy
28+
types-mock
2829
commands =
2930
flake8 src tests
3031
mypy --python-version=3.9 src tests

0 commit comments

Comments
 (0)