Skip to content

Remove Python 2 only stubs #13257

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions mypy/stubinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def is_legacy_bundled_package(prefix: str, py_version: int) -> bool:
"cachetools": StubInfo("types-cachetools"),
"chardet": StubInfo("types-chardet"),
"click_spinner": StubInfo("types-click-spinner"),
"concurrent": StubInfo("types-futures", py_version=2),
"contextvars": StubInfo("types-contextvars", py_version=3),
"croniter": StubInfo("types-croniter"),
"dataclasses": StubInfo("types-dataclasses", py_version=3),
Expand All @@ -42,24 +41,18 @@ def is_legacy_bundled_package(prefix: str, py_version: int) -> bool:
"deprecated": StubInfo("types-Deprecated"),
"docutils": StubInfo("types-docutils", py_version=3),
"emoji": StubInfo("types-emoji"),
"enum": StubInfo("types-enum34", py_version=2),
"fb303": StubInfo("types-fb303", py_version=2),
"first": StubInfo("types-first"),
"geoip2": StubInfo("types-geoip2"),
"gflags": StubInfo("types-python-gflags"),
"google.protobuf": StubInfo("types-protobuf"),
"ipaddress": StubInfo("types-ipaddress", py_version=2),
"kazoo": StubInfo("types-kazoo", py_version=2),
"markdown": StubInfo("types-Markdown"),
"maxminddb": StubInfo("types-maxminddb"),
"mock": StubInfo("types-mock"),
"OpenSSL": StubInfo("types-pyOpenSSL"),
"paramiko": StubInfo("types-paramiko"),
"pathlib2": StubInfo("types-pathlib2", py_version=2),
"pkg_resources": StubInfo("types-setuptools", py_version=3),
"polib": StubInfo("types-polib"),
"pycurl": StubInfo("types-pycurl"),
"pymssql": StubInfo("types-pymssql", py_version=2),
"pymysql": StubInfo("types-PyMySQL"),
"pyrfc3339": StubInfo("types-pyRFC3339", py_version=3),
"python2": StubInfo("types-six"),
Expand All @@ -68,16 +61,13 @@ def is_legacy_bundled_package(prefix: str, py_version: int) -> bool:
"redis": StubInfo("types-redis"),
"requests": StubInfo("types-requests"),
"retry": StubInfo("types-retry"),
"routes": StubInfo("types-Routes", py_version=2),
"scribe": StubInfo("types-scribe", py_version=2),
"simplejson": StubInfo("types-simplejson"),
"singledispatch": StubInfo("types-singledispatch"),
"six": StubInfo("types-six"),
"slugify": StubInfo("types-python-slugify"),
"tabulate": StubInfo("types-tabulate"),
"termcolor": StubInfo("types-termcolor"),
"toml": StubInfo("types-toml"),
"tornado": StubInfo("types-tornado", py_version=2),
"typed_ast": StubInfo("types-typed-ast", py_version=3),
"tzlocal": StubInfo("types-tzlocal"),
"ujson": StubInfo("types-ujson"),
Expand Down
3 changes: 0 additions & 3 deletions mypy/test/teststubinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ def test_is_legacy_bundled_packages(self) -> None:
assert is_legacy_bundled_package("pycurl", 2)
assert is_legacy_bundled_package("pycurl", 3)

assert is_legacy_bundled_package("scribe", 2)
assert not is_legacy_bundled_package("scribe", 3)

assert not is_legacy_bundled_package("dataclasses", 2)
assert is_legacy_bundled_package("dataclasses", 3)