Skip to content

Commit fcf8f0b

Browse files
authored
Remove Python 2 only stubs (#13257)
1 parent 154d6f9 commit fcf8f0b

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

mypy/stubinfo.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def is_legacy_bundled_package(prefix: str, py_version: int) -> bool:
3131
"cachetools": StubInfo("types-cachetools"),
3232
"chardet": StubInfo("types-chardet"),
3333
"click_spinner": StubInfo("types-click-spinner"),
34-
"concurrent": StubInfo("types-futures", py_version=2),
3534
"contextvars": StubInfo("types-contextvars", py_version=3),
3635
"croniter": StubInfo("types-croniter"),
3736
"dataclasses": StubInfo("types-dataclasses", py_version=3),
@@ -42,24 +41,18 @@ def is_legacy_bundled_package(prefix: str, py_version: int) -> bool:
4241
"deprecated": StubInfo("types-Deprecated"),
4342
"docutils": StubInfo("types-docutils", py_version=3),
4443
"emoji": StubInfo("types-emoji"),
45-
"enum": StubInfo("types-enum34", py_version=2),
46-
"fb303": StubInfo("types-fb303", py_version=2),
4744
"first": StubInfo("types-first"),
4845
"geoip2": StubInfo("types-geoip2"),
4946
"gflags": StubInfo("types-python-gflags"),
5047
"google.protobuf": StubInfo("types-protobuf"),
51-
"ipaddress": StubInfo("types-ipaddress", py_version=2),
52-
"kazoo": StubInfo("types-kazoo", py_version=2),
5348
"markdown": StubInfo("types-Markdown"),
5449
"maxminddb": StubInfo("types-maxminddb"),
5550
"mock": StubInfo("types-mock"),
5651
"OpenSSL": StubInfo("types-pyOpenSSL"),
5752
"paramiko": StubInfo("types-paramiko"),
58-
"pathlib2": StubInfo("types-pathlib2", py_version=2),
5953
"pkg_resources": StubInfo("types-setuptools", py_version=3),
6054
"polib": StubInfo("types-polib"),
6155
"pycurl": StubInfo("types-pycurl"),
62-
"pymssql": StubInfo("types-pymssql", py_version=2),
6356
"pymysql": StubInfo("types-PyMySQL"),
6457
"pyrfc3339": StubInfo("types-pyRFC3339", py_version=3),
6558
"python2": StubInfo("types-six"),
@@ -68,16 +61,13 @@ def is_legacy_bundled_package(prefix: str, py_version: int) -> bool:
6861
"redis": StubInfo("types-redis"),
6962
"requests": StubInfo("types-requests"),
7063
"retry": StubInfo("types-retry"),
71-
"routes": StubInfo("types-Routes", py_version=2),
72-
"scribe": StubInfo("types-scribe", py_version=2),
7364
"simplejson": StubInfo("types-simplejson"),
7465
"singledispatch": StubInfo("types-singledispatch"),
7566
"six": StubInfo("types-six"),
7667
"slugify": StubInfo("types-python-slugify"),
7768
"tabulate": StubInfo("types-tabulate"),
7869
"termcolor": StubInfo("types-termcolor"),
7970
"toml": StubInfo("types-toml"),
80-
"tornado": StubInfo("types-tornado", py_version=2),
8171
"typed_ast": StubInfo("types-typed-ast", py_version=3),
8272
"tzlocal": StubInfo("types-tzlocal"),
8373
"ujson": StubInfo("types-ujson"),

mypy/test/teststubinfo.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,5 @@ def test_is_legacy_bundled_packages(self) -> None:
1111
assert is_legacy_bundled_package("pycurl", 2)
1212
assert is_legacy_bundled_package("pycurl", 3)
1313

14-
assert is_legacy_bundled_package("scribe", 2)
15-
assert not is_legacy_bundled_package("scribe", 3)
16-
1714
assert not is_legacy_bundled_package("dataclasses", 2)
1815
assert is_legacy_bundled_package("dataclasses", 3)

0 commit comments

Comments
 (0)