Skip to content

Commit d95f24b

Browse files
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.
1 parent 7bb1f37 commit d95f24b

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

mypy/stubinfo.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
'concurrent': 'types-futures',
1919
'contextvars': 'types-contextvars',
2020
'croniter': 'types-croniter',
21-
'Crypto': 'types-pycrypto',
2221
'cryptography': 'types-cryptography',
2322
'dataclasses': 'types-dataclasses',
2423
'dateparser': 'types-dateparser',
@@ -56,8 +55,6 @@
5655
'pycurl': 'types-pycurl',
5756
'pymssql': 'types-pymssql',
5857
'pymysql': 'types-PyMySQL',
59-
'pynamodb': 'types-pynamodb',
60-
'pyre_extensions': 'types-pyre-extensions',
6158
'pyrfc3339': 'types-pyRFC3339',
6259
'python2': 'types-six',
6360
'pytz': 'types-pytz',

test-data/unit/fine-grained-modules.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,13 +2193,13 @@ import waitress
21932193
[file a.py.2]
21942194
# nothing
21952195
[file a.py.3]
2196-
import pynamodb
2196+
import requests
21972197
[out]
21982198
a.py:1: error: Library stubs not installed for "waitress" (or incompatible with Python 3.6)
21992199
a.py:1: note: Hint: "python3 -m pip install types-waitress"
22002200
a.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
22012201
==
22022202
==
2203-
a.py:1: error: Library stubs not installed for "pynamodb" (or incompatible with Python 3.6)
2204-
a.py:1: note: Hint: "python3 -m pip install types-pynamodb"
2203+
a.py:1: error: Library stubs not installed for "requests" (or incompatible with Python 3.6)
2204+
a.py:1: note: Hint: "python3 -m pip install types-requests"
22052205
a.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

0 commit comments

Comments
 (0)