Skip to content

Commit

Permalink
Update stubinfo for py.typed and removed packages (#12959)
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja committed Jun 14, 2022
1 parent ddbea69 commit 132b8e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions mypy/stubinfo.py
Expand Up @@ -29,8 +29,6 @@ def is_legacy_bundled_package(prefix: str, py_version: int) -> bool:
'bleach': StubInfo('types-bleach'),
'boto': StubInfo('types-boto'),
'cachetools': StubInfo('types-cachetools'),
'certifi': StubInfo('types-certifi'),
'characteristic': StubInfo('types-characteristic'),
'chardet': StubInfo('types-chardet'),
'click_spinner': StubInfo('types-click-spinner'),
'concurrent': StubInfo('types-futures', py_version=2),
Expand All @@ -46,10 +44,7 @@ def is_legacy_bundled_package(prefix: str, py_version: int) -> bool:
'emoji': StubInfo('types-emoji'),
'enum': StubInfo('types-enum34', py_version=2),
'fb303': StubInfo('types-fb303', py_version=2),
'filelock': StubInfo('types-filelock', py_version=3),
'first': StubInfo('types-first'),
'freezegun': StubInfo('types-freezegun', py_version=3),
'frozendict': StubInfo('types-frozendict', py_version=3),
'geoip2': StubInfo('types-geoip2'),
'gflags': StubInfo('types-python-gflags'),
'google.protobuf': StubInfo('types-protobuf'),
Expand Down
4 changes: 2 additions & 2 deletions mypy/test/teststubinfo.py
Expand Up @@ -8,8 +8,8 @@ def test_is_legacy_bundled_packages(self) -> None:
assert not is_legacy_bundled_package('foobar_asdf', 2)
assert not is_legacy_bundled_package('foobar_asdf', 3)

assert is_legacy_bundled_package('certifi', 2)
assert is_legacy_bundled_package('certifi', 3)
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)
Expand Down

0 comments on commit 132b8e5

Please sign in to comment.