From 57007231db06724e0638b3aa40717666680085a5 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 8 Jun 2021 16:08:04 -0700 Subject: [PATCH 1/2] Don't suggest installing types-pycrypto It doesn't exist, since it was removed from typeshed in October (python/typeshed#4606). Similarly, pynamodb was removed in January. I haven't tracked down what happened to pyre-extensions in typeshed, but https://pypi.org/project/types-pyre-extensions/ doesn't exist and in any case mypy users presumably don't need it. --- mypy/stubinfo.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/mypy/stubinfo.py b/mypy/stubinfo.py index e5c6d68c6df9..284dcaf16bf5 100644 --- a/mypy/stubinfo.py +++ b/mypy/stubinfo.py @@ -18,7 +18,6 @@ 'concurrent': 'types-futures', 'contextvars': 'types-contextvars', 'croniter': 'types-croniter', - 'Crypto': 'types-pycrypto', 'cryptography': 'types-cryptography', 'dataclasses': 'types-dataclasses', 'dateparser': 'types-dateparser', @@ -56,8 +55,6 @@ 'pycurl': 'types-pycurl', 'pymssql': 'types-pymssql', 'pymysql': 'types-PyMySQL', - 'pynamodb': 'types-pynamodb', - 'pyre_extensions': 'types-pyre-extensions', 'pyrfc3339': 'types-pyRFC3339', 'python2': 'types-six', 'pytz': 'types-pytz', From 335f632d9e446fbcf60d1f966377699d0f1f84d4 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Tue, 8 Jun 2021 18:03:58 -0700 Subject: [PATCH 2/2] update test --- test-data/unit/fine-grained-modules.test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-data/unit/fine-grained-modules.test b/test-data/unit/fine-grained-modules.test index a38820d9170a..3ce38e280ef5 100644 --- a/test-data/unit/fine-grained-modules.test +++ b/test-data/unit/fine-grained-modules.test @@ -2193,13 +2193,13 @@ import waitress [file a.py.2] # nothing [file a.py.3] -import pynamodb +import requests [out] a.py:1: error: Library stubs not installed for "waitress" (or incompatible with Python 3.6) a.py:1: note: Hint: "python3 -m pip install types-waitress" a.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports == == -a.py:1: error: Library stubs not installed for "pynamodb" (or incompatible with Python 3.6) -a.py:1: note: Hint: "python3 -m pip install types-pynamodb" +a.py:1: error: Library stubs not installed for "requests" (or incompatible with Python 3.6) +a.py:1: note: Hint: "python3 -m pip install types-requests" a.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports