Skip to content

Commit

Permalink
Block mypy 0.940
Browse files Browse the repository at this point in the history
It breaks test_mypy.

See also python/mypy#12339
  • Loading branch information
hynek committed Mar 14, 2022
1 parent 83d91b2 commit 9f09614
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@
sys.version_info[:2] >= (3, 6)
and platform.python_implementation() != "PyPy"
):
EXTRAS_REQUIRE["tests_no_zope"].extend(["mypy", "pytest-mypy-plugins"])
EXTRAS_REQUIRE["tests_no_zope"].extend(
["mypy!=0.940", "pytest-mypy-plugins"]
)

EXTRAS_REQUIRE["tests"] = EXTRAS_REQUIRE["tests_no_zope"] + ["zope.interface"]
EXTRAS_REQUIRE["dev"] = (
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ commands = towncrier --draft
basepython = python3.10
deps = mypy>=0.902
commands =
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
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
mypy tests/typing_example.py


Expand Down

0 comments on commit 9f09614

Please sign in to comment.