summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Robertson <davidr@element.io>2021-10-06 19:19:24 +0100
committerDavid Robertson <davidr@element.io>2021-10-06 19:22:26 +0100
commit05bd37099c8cd5ebdae19c1a2e6b937908f33e85 (patch)
tree8b25b2ea12e64eaa97f17dbe6050aed5c04f3d3f
parentAlphabetise mypy `ignore-missing-imports` section (diff)
downloadsynapse-05bd37099c8cd5ebdae19c1a2e6b937908f33e85.tar.xz
typeshed has jsonschema stubs
since https://github.com/python/typeshed/pull/5784
-rw-r--r--mypy.ini3
-rwxr-xr-xsetup.py7
2 files changed, 6 insertions, 4 deletions
diff --git a/mypy.ini b/mypy.ini
index e669b00995..b379ee0e6d 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -226,9 +226,6 @@ ignore_missing_imports = True
 [mypy-josepy.*]
 ignore_missing_imports = True
 
-[mypy-jsonschema]
-ignore_missing_imports = True
-
 [mypy-jwt.*]
 ignore_missing_imports = True
 
diff --git a/setup.py b/setup.py
index c478563510..a35a42beb1 100755
--- a/setup.py
+++ b/setup.py
@@ -112,7 +112,12 @@ CONDITIONAL_REQUIREMENTS["dev"] = CONDITIONAL_REQUIREMENTS["lint"] + [
     "pygithub==1.55",
 ]
 
-CONDITIONAL_REQUIREMENTS["mypy"] = ["mypy==0.812", "mypy-zope==0.2.13"]
+CONDITIONAL_REQUIREMENTS["mypy"] = [
+    "mypy==0.812",
+    "mypy-zope==0.2.13",
+    "types-jsonschema>=3.2.0",
+
+]
 
 # 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.