Skip to content

Commit d7a84f0

Browse files
committed
mypy: skip following _pytest imports
Newer pytest versions contain variable annotations, and they fail as we're running mypy with python_version = 3.4.
1 parent 03e5877 commit d7a84f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/setup.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ python_version = 3.4
99
show_error_codes = true
1010
ignore_missing_imports = true
1111

12+
[mypy-_pytest.*]
13+
# variable annotations in newer pytest, errors out with python_version < 3.6
14+
follow_imports = skip
15+
1216
[isort]
1317
known_first_party = conftest
1418
known_third_party = pexpect,pytest

0 commit comments

Comments
 (0)