diff --git a/mypy/stubinfo.py b/mypy/stubinfo.py index 807f08bf9156d..cbb1f0f9b4192 100644 --- a/mypy/stubinfo.py +++ b/mypy/stubinfo.py @@ -41,7 +41,6 @@ def stub_distribution_name(module: str) -> str | None: "polib": "types-polib", "pycurl": "types-pycurl", "pymysql": "types-PyMySQL", - "pyrfc3339": "types-pyRFC3339", "pytz": "types-pytz", "requests": "types-requests", "retry": "types-retry", @@ -50,7 +49,6 @@ def stub_distribution_name(module: str) -> str | None: "six": "types-six", "tabulate": "types-tabulate", "toml": "types-toml", - "ujson": "types-ujson", "waitress": "types-waitress", "yaml": "types-PyYAML", } @@ -74,7 +72,7 @@ def stub_distribution_name(module: str) -> str | None: "auth0": "types-auth0-python", "authlib": "types-Authlib", "aws_xray_sdk": "types-aws-xray-sdk", - "binaryornot": "types-binaryornot", + "behave": "types-behave", "boltons": "types-boltons", "braintree": "types-braintree", "bugbear": "types-flake8-bugbear", @@ -94,6 +92,8 @@ def stub_distribution_name(module: str) -> str | None: "cronlog": "types-python-crontab", "crontab": "types-python-crontab", "crontabs": "types-python-crontab", + "cups": "types-pycups", + "datauri": "types-datauri", "dateparser_data": "types-dateparser", "dde": "types-pywin32", "defusedxml": "types-defusedxml", @@ -116,8 +116,8 @@ def stub_distribution_name(module: str) -> str | None: "flask_cors": "types-Flask-Cors", "flask_migrate": "types-Flask-Migrate", "flask_socketio": "types-Flask-SocketIO", - "fpdf": "types-fpdf2", "gdb": "types-gdb", + "geojson": "types-geojson", "geopandas": "types-geopandas", "gevent": "types-gevent", "greenlet": "types-greenlet", @@ -131,9 +131,10 @@ def stub_distribution_name(module: str) -> str | None: "hnswlib": "types-hnswlib", "html5lib": "types-html5lib", "httplib2": "types-httplib2", + "httpretty": "types-httpretty", "hvac": "types-hvac", "ibm_db": "types-ibm-db", - "icalendar": "types-icalendar", + "ibm_db_ctx": "types-ibm-db", "import_export": "types-django-import-export", "inifile": "types-inifile", "isapi": "types-pywin32", @@ -145,6 +146,7 @@ def stub_distribution_name(module: str) -> str | None: "jose": "types-python-jose", "jsonschema": "types-jsonschema", "jwcrypto": "types-jwcrypto", + "kafka": "types-kafka-python", "keyboard": "types-keyboard", "ldap3": "types-ldap3", "lunardate": "types-lunardate", @@ -170,7 +172,6 @@ def stub_distribution_name(module: str) -> str | None: "openpyxl": "types-openpyxl", "opentracing": "types-opentracing", "parsimonious": "types-parsimonious", - "passlib": "types-passlib", "passpy": "types-passpy", "peewee": "types-peewee", "pep8ext_naming": "types-pep8-naming", @@ -193,9 +194,10 @@ def stub_distribution_name(module: str) -> str | None: "pyluach": "types-pyluach", "pymeeus": "types-PyMeeus", "pynput": "types-pynput", + "pyogrio": "types-pyogrio", "pyperclip": "types-pyperclip", + "pyphen": "types-pyphen", "pyscreeze": "types-PyScreeze", - "pysftp": "types-pysftp", "pytest_lazyfixture": "types-pytest-lazy-fixture", "python_http_client": "types-python-http-client", "pythoncom": "types-pywin32", @@ -203,16 +205,17 @@ def stub_distribution_name(module: str) -> str | None: "pywintypes": "types-pywin32", "qrbill": "types-qrbill", "qrcode": "types-qrcode", + "rasterio": "types-rasterio", "ratelimit": "types-ratelimit", "regex": "types-regex", "regutil": "types-pywin32", "reportlab": "types-reportlab", "requests_oauthlib": "types-requests-oauthlib", + "resampy": "types-resampy", "rfc3339_validator": "types-rfc3339-validator", "RPi": "types-RPi.GPIO", "s2clientprotocol": "types-s2clientprotocol", - "sass": "types-libsass", - "sassutils": "types-libsass", + "scp": "types-scp", "seaborn": "types-seaborn", "send2trash": "types-Send2Trash", "serial": "types-pyserial", @@ -228,6 +231,8 @@ def stub_distribution_name(module: str) -> str | None: "tensorflow": "types-tensorflow", "tgcrypto": "types-TgCrypto", "timer": "types-pywin32", + "tinycss2": "types-tinycss2", + "titlecase": "types-titlecase", "toposort": "types-toposort", "tqdm": "types-tqdm", "translationstring": "types-translationstring", @@ -242,6 +247,7 @@ def stub_distribution_name(module: str) -> str | None: "watchpoints": "types-watchpoints", "webencodings": "types-webencodings", "webob": "types-WebOb", + "webtest": "types-WebTest", "whatthepatch": "types-whatthepatch", "win2kras": "types-pywin32", "win32": "types-pywin32", diff --git a/mypy/test/teststubinfo.py b/mypy/test/teststubinfo.py index 25becb4a1aeaf..bbc9cb680c224 100644 --- a/mypy/test/teststubinfo.py +++ b/mypy/test/teststubinfo.py @@ -10,7 +10,7 @@ def test_stub_distribution_name(self) -> None: assert stub_distribution_name("foobar_asdf") is None assert stub_distribution_name("pycurl") == "types-pycurl" assert stub_distribution_name("psutil") == "types-psutil" - assert stub_distribution_name("sassutils") == "types-libsass" + assert stub_distribution_name("socks") == "types-PySocks" assert stub_distribution_name("google.cloud.ndb") == "types-google-cloud-ndb" assert stub_distribution_name("google.cloud.ndb.submodule") == "types-google-cloud-ndb" assert stub_distribution_name("google.cloud.unknown") is None