Skip to content

Commit

Permalink
Don't suggest installing types-pycrypto (#10603)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JelleZijlstra authored and JukkaL committed Jun 10, 2021
1 parent ffc18df commit fee4e8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions mypy/stubinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions test-data/unit/fine-grained-modules.test
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit fee4e8c

Please sign in to comment.