Skip to content

Commit 9f09614

Browse files
committed
Block mypy 0.940
It breaks test_mypy. See also python/mypy#12339
1 parent 83d91b2 commit 9f09614

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@
6363
sys.version_info[:2] >= (3, 6)
6464
and platform.python_implementation() != "PyPy"
6565
):
66-
EXTRAS_REQUIRE["tests_no_zope"].extend(["mypy", "pytest-mypy-plugins"])
66+
EXTRAS_REQUIRE["tests_no_zope"].extend(
67+
["mypy!=0.940", "pytest-mypy-plugins"]
68+
)
6769

6870
EXTRAS_REQUIRE["tests"] = EXTRAS_REQUIRE["tests_no_zope"] + ["zope.interface"]
6971
EXTRAS_REQUIRE["dev"] = (

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ commands = towncrier --draft
111111
basepython = python3.10
112112
deps = mypy>=0.902
113113
commands =
114-
mypy src/attr/__init__.pyi src/attr/_version_info.pyi src/attr/converters.pyi src/attr/exceptions.pyi src/attr/filters.pyi src/attr/setters.pyi src/attr/validators.pyi
114+
mypy src/attrs/__init__.pyi src/attr/__init__.pyi src/attr/_version_info.pyi src/attr/converters.pyi src/attr/exceptions.pyi src/attr/filters.pyi src/attr/setters.pyi src/attr/validators.pyi
115115
mypy tests/typing_example.py
116116

117117

0 commit comments

Comments
 (0)