From 84c0e46cced7b1fe0e3fd27eed5111884959cb36 Mon Sep 17 00:00:00 2001
From: Jonathan de Jong <jonathan@automatia.nl>
Date: Tue, 20 Oct 2020 13:55:21 +0200
Subject: [PATCH] Update mypy to 0.790, and move dependencies to extras (#8583)

---
 changelog.d/8583.misc | 1 +
 setup.py              | 2 ++
 tox.ini               | 4 +---
 3 files changed, 4 insertions(+), 3 deletions(-)
 create mode 100644 changelog.d/8583.misc

diff --git a/changelog.d/8583.misc b/changelog.d/8583.misc
new file mode 100644
index 0000000000..d24973f09a
--- /dev/null
+++ b/changelog.d/8583.misc
@@ -0,0 +1 @@
+Update `mypy` static type checker to 0.790.
\ No newline at end of file
diff --git a/setup.py b/setup.py
index 08843fe2a3..494f50239f 100755
--- a/setup.py
+++ b/setup.py
@@ -102,6 +102,8 @@ CONDITIONAL_REQUIREMENTS["lint"] = [
     "flake8",
 ]
 
+CONDITIONAL_REQUIREMENTS["mypy"] = ["mypy==0.790", "mypy-zope"]
+
 # Dependencies which are exclusively required by unit test code. This is
 # NOT a list of all modules that are necessary to run the unit tests.
 # Tests assume that all optional dependencies are installed.
diff --git a/tox.ini b/tox.ini
index 6d08153782..6dcc439a40 100644
--- a/tox.ini
+++ b/tox.ini
@@ -160,9 +160,7 @@ commands=
 [testenv:mypy]
 deps =
     {[base]deps}
-    mypy==0.782
-    mypy-zope
-extras = all
+extras = all,mypy
 commands = mypy
 
 # To find all folders that pass mypy you run:
-- 
GitLab