From 05bd37099c8cd5ebdae19c1a2e6b937908f33e85 Mon Sep 17 00:00:00 2001 From: David Robertson Date: Wed, 6 Oct 2021 19:19:24 +0100 Subject: [PATCH] typeshed has jsonschema stubs since https://github.com/python/typeshed/pull/5784 --- mypy.ini | 3 --- setup.py | 7 ++++++- 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.