From d95f24ba2413e699d1d1cfde66fdb4176ee6dc95 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Wed, 9 Jun 2021 04:18:03 -0700 Subject: [PATCH] Don't suggest installing types-pycrypto (#10603) 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 --- test-data/unit/fine-grained-modules.test | 6 +++--- 2 files changed, 3 insertions(+), 6 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', 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