Conversation

wyattscarpenter

Fixes #18661. Please see that issue for discussion and justification. However, briefly: import-untyped-stubs-available is now a new error, so that it can be enabled while import-untyped is left disabled, so users can be made aware of available type stubs to improve their typing. As I said over there:

This lets all current import-untyped ignore codes work except where maintainers can improve their types by installing the available stubs. (And if they don't want that for some reason, the new code can be globally ignored.) Although perhaps I am a bit too optimistic about the average enthusiasm for improving one's types.

This also meant I noticed that lxml-stubs exists, and — in order to pass the self-check — fixed the code that assumed it wouldn't exist. An early success story for this new code!


Beyond the scope of this PR, unless someone authoritatively tells me what to do with them:

  • I'm looking at https://.com/lxml/lxml-stubs right now and it suggests lxml-types, suggesting that maybe mypy/stubinfo.py should recommend that instead, and we should require that for mypy test-requirements.

  • The "module is installed, but missing library stubs or py.typed marker" message should be changed in certain circumstances to be more informative. Which one is it? We could probably tell the user.

  • There is a line of code ending in and os.path.basename(testcase.file) == "reports.test". We don't have such a file anymore, so we never skip for lxml-related reasons on whatever this is supposed to be. Is this supposed to be check-reports.test? Well, whatever. It passes ci, so I guess we didn't need that for anything right now anyway.

  • Working on this PR made me realize that several pieces of the documentation I was working within were inelegant or inaccurate. I'm working on revising them, but for my own sanity I have decided that will be a subsequent PR instead of part of this one.

@wyattscarpenter

As I was making this change, and adapting the mypy codebase to include some new stubs, I realized that the requirements.txt files tell you to run pip-compile --output-file=test-requirements.txt --strip-extras --allow-unsafe test-requirements.in, and thus have an implicit undeclared requirement on pip-tools. I tried adding this to build-requirements.txt but that broke some things so I put it in a new extra called dev instead.

@github-actionsGitHub Actions

This comment has been minimized.

@wyattscarpenter

An interesting mypy_primer diff! We can safely ignore all of the candy stripes where some [import-untyped] just became some [import-untyped-stubs-available]. (Side note: are people just running mypy on these projects and getting hundreds of errors, which they don't look at? What?). The ones where there are now just a bunch of import-untyped-stubs-available also seem uninteresting; these guys were just globally ignoring import-untyped, or whatever, and they can globally ignore import-untyped-stubs-available too. A couple of them have the interesting type of error, along the lines of:

+ src/urllib3/contrib/pyopenssl.py:43: error: Unused "type: ignore" comment  [unused-ignore]
+ src/urllib3/contrib/pyopenssl.py:43: error: Library stubs not installed for "OpenSSL.SSL"  [import-untyped-stubs-available]
+ src/urllib3/contrib/pyopenssl.py:43: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment
+ src/urllib3/contrib/pyopenssl.py:43: note: Hint: "python3 -m pip install types-pyOpenSSL"
+ src/urllib3/contrib/pyopenssl.py:43: note: (or run "mypy --install-types" to install all missing stub packages)

This is what this change seeks to promote, and implicitly we think users will find it more useful than it is annoying.

@github-actionsGitHub Actions

This comment has been minimized.

@wyattscarpenterwyattscarpenter marked this pull request as draft May 17, 2025 13:52
@wyattscarpenterwyattscarpenter marked this pull request as ready for review May 17, 2025 13:55
@github-actionsGitHub Actions

This comment has been minimized.

@github-actionsGitHub Actions

This comment has been minimized.

@wyattscarpenterwyattscarpenter marked this pull request as draft June 7, 2025 21:59
@wyattscarpenter

Ok, since merging there's a new error I need to deal with — maybe related to the reports.test thing? — so it's back to being a draft PR until then. Unless merging again fixes it. Might slip some more docu in here as well while I'm at it.

@github-actionsGitHub Actions

Diff from mypy_primer, showing the effect of this PR on open source code:

colour (https://.com/colour-science/colour)
- colour/utilities/requirements.py:224: error: Library stubs not installed for "networkx"  [import-untyped]
+ colour/utilities/requirements.py:224: error: Library stubs not installed for "networkx"  [import-untyped-stubs-available]
- colour/utilities/requirements.py:386: error: Library stubs not installed for "tqdm"  [import-untyped]
+ colour/utilities/requirements.py:386: error: Library stubs not installed for "tqdm"  [import-untyped-stubs-available]
- colour/utilities/network.py:1779: error: Library stubs not installed for "networkx"  [import-untyped]
+ colour/utilities/network.py:1779: error: Library stubs not installed for "networkx"  [import-untyped-stubs-available]
- colour/recovery/jakob2019.py:67: error: Library stubs not installed for "tqdm"  [import-untyped]
+ colour/recovery/jakob2019.py:67: error: Library stubs not installed for "tqdm"  [import-untyped-stubs-available]
- colour/recovery/otsu2018.py:70: error: Library stubs not installed for "tqdm"  [import-untyped]
+ colour/recovery/otsu2018.py:70: error: Library stubs not installed for "tqdm"  [import-untyped-stubs-available]
- colour/graph/conversion.py:1048: error: Library stubs not installed for "networkx"  [import-untyped]
+ colour/graph/conversion.py:1048: error: Library stubs not installed for "networkx"  [import-untyped-stubs-available]
- colour/plotting/graph.py:80: error: Library stubs not installed for "networkx"  [import-untyped]
+ colour/plotting/graph.py:80: error: Library stubs not installed for "networkx"  [import-untyped-stubs-available]

typeshed-stats (https://.com/AlexWaygood/typeshed-stats)
- website_macros.py:17: error: Library stubs not installed for "markdown"  [import-untyped]
+ website_macros.py:17: error: Library stubs not installed for "markdown"  [import-untyped-stubs-available]
- tests/test_serialize.py:7: error: Library stubs not installed for "markdown"  [import-untyped]
+ tests/test_serialize.py:7: error: Library stubs not installed for "markdown"  [import-untyped-stubs-available]
- tests/test_serialize.py:9: error: Library stubs not installed for "bs4"  [import-untyped]
+ tests/test_serialize.py:9: error: Library stubs not installed for "bs4"  [import-untyped-stubs-available]
- tests/test__cli.py:16: error: Library stubs not installed for "markdown"  [import-untyped]
+ tests/test__cli.py:16: error: Library stubs not installed for "markdown"  [import-untyped-stubs-available]

antidote (https://.com/Finistere/antidote)
- setup.py:4: error: Library stubs not installed for "setuptools"  [import-untyped]
+ setup.py:4: error: Library stubs not installed for "setuptools"  [import-untyped-stubs-available]

prefect (https://.com/PrefectHQ/prefect)
- src/prefect/server/api/collections.py:6: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/server/api/collections.py:6: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/settings/sources.py:9: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/settings/sources.py:9: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/_internal/compatibility/deprecated.py:21: error: Library stubs not installed for "dateparser"  [import-untyped]
+ src/prefect/_internal/compatibility/deprecated.py:21: error: Library stubs not installed for "dateparser"  [import-untyped-stubs-available]
- src/prefect/server/utilities/messaging/memory.py:17: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/server/utilities/messaging/memory.py:17: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/events/clients.py:26: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/events/clients.py:26: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/task_runs.py:10: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/task_runs.py:10: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/_waiters.py:13: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/_waiters.py:13: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/server/events/actions.py:35: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/server/events/actions.py:35: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/results.py:24: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/results.py:24: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/server/events/ordering.py:21: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/server/events/ordering.py:21: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/server/models/events.py:5: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/server/models/events.py:5: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/server/database/query_components.py:18: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/server/database/query_components.py:18: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/runner/runner.py:71: error: Library stubs not installed for "cachetools"  [import-untyped]
+ src/prefect/runner/runner.py:71: error: Library stubs not installed for "cachetools"  [import-untyped-stubs-available]
- src/prefect/cli/deployment.py:759: error: Library stubs not installed for "dateparser"  [import-untyped]
+ src/prefect/cli/deployment.py:759: error: Library stubs not installed for "dateparser"  [import-untyped-stubs-available]

cloud-init (https://.com/canonical/cloud-init)
- tests/integration_tests/bugs/test_gh671.py:8: error: Library stubs not installed for "passlib.hash"  [import-untyped]
+ tests/integration_tests/bugs/test_gh671.py:8: error: Library stubs not installed for "passlib.hash"  [import-untyped-stubs-available]
- tests/integration_tests/bugs/test_gh671.py:8: error: Library stubs not installed for "passlib"  [import-untyped]
+ tests/integration_tests/bugs/test_gh671.py:8: error: Library stubs not installed for "passlib"  [import-untyped-stubs-available]
- cloudinit/distros/netbsd.py:24: error: Library stubs not installed for "passlib.hash"  [import-untyped]
+ cloudinit/distros/netbsd.py:24: error: Library stubs not installed for "passlib.hash"  [import-untyped-stubs-available]
- cloudinit/sources/DataSourceAzure.py:59: error: Library stubs not installed for "passlib.hash"  [import-untyped]
+ cloudinit/sources/DataSourceAzure.py:59: error: Library stubs not installed for "passlib.hash"  [import-untyped-stubs-available]
- cloudinit/sources/DataSourceAzure.py:59: error: Library stubs not installed for "passlib"  [import-untyped]
+ cloudinit/sources/DataSourceAzure.py:59: error: Library stubs not installed for "passlib"  [import-untyped-stubs-available]
- tests/unittests/sources/test_azure.py:12: error: Library stubs not installed for "passlib.hash"  [import-untyped]
+ tests/unittests/sources/test_azure.py:12: error: Library stubs not installed for "passlib.hash"  [import-untyped-stubs-available]
- tests/unittests/sources/test_azure.py:12: error: Library stubs not installed for "passlib"  [import-untyped]
+ tests/unittests/sources/test_azure.py:12: error: Library stubs not installed for "passlib"  [import-untyped-stubs-available]

urllib3 (https://.com/urllib3/urllib3)
+ src/urllib3/contrib/pyopenssl.py:43: error: Unused "type: ignore" comment  [unused-ignore]
+ src/urllib3/contrib/pyopenssl.py:43: error: Library stubs not installed for "OpenSSL.SSL"  [import-untyped-stubs-available]
+ src/urllib3/contrib/pyopenssl.py:43: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment
+ src/urllib3/contrib/pyopenssl.py:43: note: Hint: "python3 -m pip install types-pyOpenSSL"
+ src/urllib3/contrib/pyopenssl.py:43: note: (or run "mypy --install-types" to install all missing stub packages)
+ src/urllib3/contrib/pyopenssl.py:43: error: Library stubs not installed for "OpenSSL"  [import-untyped-stubs-available]
+ src/urllib3/contrib/pyopenssl.py:64: error: Unused "type: ignore" comment  [unused-ignore]
+ src/urllib3/contrib/pyopenssl.py:64: error: Library stubs not installed for "OpenSSL.crypto"  [import-untyped-stubs-available]
+ src/urllib3/contrib/pyopenssl.py:64: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment
+ test/contrib/test_pyopenssl.py:10: error: Unused "type: ignore" comment  [unused-ignore]
+ test/contrib/test_pyopenssl.py:10: error: Library stubs not installed for "OpenSSL.crypto"  [import-untyped-stubs-available]
+ test/contrib/test_pyopenssl.py:10: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment

bokeh (https://.com/bokeh/bokeh)
- release/ui.py:27:1: error: Library stubs not installed for "colorama"  [import-untyped]
+ release/ui.py:27:1: error: Library stubs not installed for "colorama"  [import-untyped-stubs-available]
- src/bokeh/util/terminal.py:51:1: error: Library stubs not installed for "colorama"  [import-untyped]
+ src/bokeh/util/terminal.py:51:1: error: Library stubs not installed for "colorama"  [import-untyped-stubs-available]
- src/bokeh/util/serialization.py:47:1: error: Library stubs not installed for "pandas"  [import-untyped]
+ src/bokeh/util/serialization.py:47:1: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- src/bokeh/core/serialization.py:472:1: error: Library stubs not installed for "pandas"  [import-untyped]
+ src/bokeh/core/serialization.py:472:1: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- src/bokeh/core/property/data_frame.py:31:1: error: Library stubs not installed for "pandas"  [import-untyped]
+ src/bokeh/core/property/data_frame.py:31:1: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- src/bokeh/core/property/data_frame.py:32:1: error: Library stubs not installed for "pandas.core.groupby"  [import-untyped]
+ src/bokeh/core/property/data_frame.py:32:1: error: Library stubs not installed for "pandas.core.groupby"  [import-untyped-stubs-available]
- src/bokeh/server/tornado.py:772:1: error: Library stubs not installed for "pandas"  [import-untyped]
+ src/bokeh/server/tornado.py:772:1: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- src/bokeh/util/hex.py:39:1: error: Library stubs not installed for "pandas"  [import-untyped]
+ src/bokeh/util/hex.py:39:1: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]

materialize (https://.com/MaterializeInc/materialize)
- misc/python/stubs/docker/__init__.pyi:10: error: Library stubs not installed for "docker.models.containers"  [import-untyped]
+ misc/python/stubs/docker/__init__.pyi:10: error: Library stubs not installed for "docker.models.containers"  [import-untyped-stubs-available]
- misc/python/materialize/benches/avro_ingest.py:18: error: Library stubs not installed for "docker"  [import-untyped]
+ misc/python/materialize/benches/avro_ingest.py:18: error: Library stubs not installed for "docker"  [import-untyped-stubs-available]
- misc/python/materialize/benches/avro_ingest.py:22: error: Library stubs not installed for "docker.models.containers"  [import-untyped]
+ misc/python/materialize/benches/avro_ingest.py:22: error: Library stubs not installed for "docker.models.containers"  [import-untyped-stubs-available]

pyodide (https://.com/pyodide/pyodide)
- pyodide-build/pyodide_build/xbuildenv_releases.py:239: error: Library stubs not installed for "requests"  [import-untyped]
+ pyodide-build/pyodide_build/xbuildenv_releases.py:239: error: Library stubs not installed for "requests"  [import-untyped-stubs-available]
- pyodide-build/pyodide_build/tests/test_xbuildenv_releases.py:5: error: Library stubs not installed for "requests"  [import-untyped]
+ pyodide-build/pyodide_build/tests/test_xbuildenv_releases.py:5: error: Library stubs not installed for "requests"  [import-untyped-stubs-available]
- pyodide-build/pyodide_build/recipe/builder.py:18: error: Library stubs not installed for "requests"  [import-untyped]
+ pyodide-build/pyodide_build/recipe/builder.py:18: error: Library stubs not installed for "requests"  [import-untyped-stubs-available]
- pyodide-build/pyodide_build/out_of_tree/pypi.py:20: error: Library stubs not installed for "requests"  [import-untyped]
+ pyodide-build/pyodide_build/out_of_tree/pypi.py:20: error: Library stubs not installed for "requests"  [import-untyped-stubs-available]
- pyodide-build/pyodide_build/cli/build.py:9: error: Library stubs not installed for "requests"  [import-untyped]
+ pyodide-build/pyodide_build/cli/build.py:9: error: Library stubs not installed for "requests"  [import-untyped-stubs-available]

strawberry (https://.com/strawberry-graphql/strawberry)
- strawberry/utils/graphql_lexer.py:3: error: Library stubs not installed for "pygments"  [import-untyped]
+ strawberry/utils/graphql_lexer.py:3: error: Library stubs not installed for "pygments"  [import-untyped-stubs-available]
- strawberry/utils/graphql_lexer.py:4: error: Library stubs not installed for "pygments.lexer"  [import-untyped]
+ strawberry/utils/graphql_lexer.py:4: error: Library stubs not installed for "pygments.lexer"  [import-untyped-stubs-available]
- strawberry/exceptions/syntax.py:5: error: Library stubs not installed for "pygments.lexers"  [import-untyped]
+ strawberry/exceptions/syntax.py:5: error: Library stubs not installed for "pygments.lexers"  [import-untyped-stubs-available]
- strawberry/utils/debug.py:20: error: Library stubs not installed for "pygments"  [import-untyped]
+ strawberry/utils/debug.py:20: error: Library stubs not installed for "pygments"  [import-untyped-stubs-available]
- strawberry/utils/debug.py:21: error: Library stubs not installed for "pygments.formatters"  [import-untyped]
+ strawberry/utils/debug.py:21: error: Library stubs not installed for "pygments.formatters"  [import-untyped-stubs-available]
- strawberry/schema/types/base_scalars.py:7: error: Library stubs not installed for "dateutil.parser"  [import-untyped]
+ strawberry/schema/types/base_scalars.py:7: error: Library stubs not installed for "dateutil.parser"  [import-untyped-stubs-available]
- strawberry/schema/types/base_scalars.py:7: error: Library stubs not installed for "dateutil"  [import-untyped]
+ strawberry/schema/types/base_scalars.py:7: error: Library stubs not installed for "dateutil"  [import-untyped-stubs-available]

trio (https://.com/python-trio/trio)
- src/trio/_tools/sync_requirements.py:12: error: Library stubs not installed for "yaml"  [import-untyped]
+ src/trio/_tools/sync_requirements.py:12: error: Library stubs not installed for "yaml"  [import-untyped-stubs-available]
- src/trio/_tests/tools/test_sync_requirements.py:10: error: Library stubs not installed for "yaml"  [import-untyped]
+ src/trio/_tests/tools/test_sync_requirements.py:10: error: Library stubs not installed for "yaml"  [import-untyped-stubs-available]

apprise (https://.com/caronc/apprise)
- apprise/plugins/windows.py:42: error: Library stubs not installed for "win32api"  [import-untyped]
+ apprise/plugins/windows.py:42: error: Library stubs not installed for "win32api"  [import-untyped-stubs-available]
- apprise/plugins/windows.py:43: error: Library stubs not installed for "win32con"  [import-untyped]
+ apprise/plugins/windows.py:43: error: Library stubs not installed for "win32con"  [import-untyped-stubs-available]
- apprise/plugins/windows.py:44: error: Library stubs not installed for "win32gui"  [import-untyped]
+ apprise/plugins/windows.py:44: error: Library stubs not installed for "win32gui"  [import-untyped-stubs-available]
- apprise/plugins/mqtt.py:52: error: Library stubs not installed for "paho.mqtt.client"  [import-untyped]
+ apprise/plugins/mqtt.py:52: error: Library stubs not installed for "paho.mqtt.client"  [import-untyped-stubs-available]
- apprise/plugins/mqtt.py:52: error: Library stubs not installed for "paho.mqtt"  [import-untyped]
+ apprise/plugins/mqtt.py:52: error: Library stubs not installed for "paho.mqtt"  [import-untyped-stubs-available]
- apprise/plugins/twitter.py:36: error: Library stubs not installed for "requests_oauthlib"  [import-untyped]
+ apprise/plugins/twitter.py:36: error: Library stubs not installed for "requests_oauthlib"  [import-untyped-stubs-available]
- setup.py:35: error: Library stubs not installed for "setuptools"  [import-untyped]
+ setup.py:35: error: Library stubs not installed for "setuptools"  [import-untyped-stubs-available]
- test/test_config_base.py:35: error: Library stubs not installed for "yaml"  [import-untyped]
+ test/test_config_base.py:35: error: Library stubs not installed for "yaml"  [import-untyped-stubs-available]

arviz (https://.com/arviz-devs/arviz)
- arviz/plots/backends/__init__.py:6: error: Library stubs not installed for "pandas"  [import-untyped]
+ arviz/plots/backends/__init__.py:6: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- arviz/stats/stats_utils.py:9: error: Library stubs not installed for "pandas"  [import-untyped]
+ arviz/stats/stats_utils.py:9: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- arviz/stats/stats.py:10: error: Library stubs not installed for "pandas"  [import-untyped]
+ arviz/stats/stats.py:10: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- arviz/stats/diagnostics.py:8: error: Library stubs not installed for "pandas"  [import-untyped]
+ arviz/stats/diagnostics.py:8: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- arviz/tests/base_tests/test_diagnostics.py:8: error: Library stubs not installed for "pandas"  [import-untyped]
+ arviz/tests/base_tests/test_diagnostics.py:8: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- arviz/tests/base_tests/test_plots_matplotlib.py:13: error: Library stubs not installed for "pandas"  [import-untyped]
+ arviz/tests/base_tests/test_plots_matplotlib.py:13: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
- arviz/tests/base_tests/test_plots_bokeh.py:7: error: Library stubs not installed for "pandas"  [import-untyped]
+ arviz/tests/base_tests/test_plots_bokeh.py:7: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]

artigraph (https://.com/artigraph/artigraph)
- src/arti/fingerprints/__init__.py:11: error: Library stubs not installed for "farmhash"  [import-untyped]
+ src/arti/fingerprints/__init__.py:11: error: Library stubs not installed for "farmhash"  [import-untyped-stubs-available]

schema_salad (https://.com/common-workflow-language/schema_salad)
+ schema_salad/tests/memory--check.py:6: error: Unused "type: ignore" comment  [unused-ignore]
+ schema_salad/tests/memory--check.py:6:1: error: Library stubs not installed for "objgraph"  [import-untyped-stubs-available]
+ schema_salad/tests/memory--check.py:6:1: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment
+ schema_salad/tests/memory--check.py:6:1: note: Hint: "python3 -m pip install types-objgraph"
+ schema_salad/tests/memory--check.py:6:1: note: (or run "mypy --install-types" to install all missing stub packages)

core (https://.com/home-assistant/core)
+ homeassistant/components/modem_callerid/const.py:6: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/mqtt/async_client.py:9: error: Library stubs not installed for "paho.mqtt.client"  [import-untyped-stubs-available]
+ homeassistant/components/mqtt/async_client.py:9: note: Hint: "python3 -m pip install types-paho-mqtt"
+ homeassistant/components/usb/utils.py:7: error: Library stubs not installed for "serial.tools.list_ports"  [import-untyped-stubs-available]
+ homeassistant/components/usb/utils.py:8: error: Library stubs not installed for "serial.tools.list_ports_common"  [import-untyped-stubs-available]
+ homeassistant/components/slack/utils.py:5: error: Library stubs not installed for "aiofiles"  [import-untyped-stubs-available]
+ homeassistant/components/recorder/util.py:406: error: Library stubs not installed for "MySQLdb.constants"  [import-untyped-stubs-available]
+ homeassistant/components/recorder/util.py:406: note: Hint: "python3 -m pip install types-mysqlclient"
+ homeassistant/components/recorder/util.py:407: error: Library stubs not installed for "MySQLdb.converters"  [import-untyped-stubs-available]
+ homeassistant/components/calendar/__init__.py:15: error: Library stubs not installed for "dateutil.rrule"  [import-untyped-stubs-available]
+ homeassistant/components/zestimate/sensor.py:10: error: Library stubs not installed for "xmltodict"  [import-untyped-stubs-available]
+ homeassistant/components/tensorflow/image_processing.py:14: error: Library stubs not installed for "tensorflow"  [import-untyped-stubs-available]
+ homeassistant/components/tensorflow/image_processing.py:14: note: Hint: "python3 -m pip install types-tensorflow"
+ homeassistant/components/ted5000/sensor.py:11: error: Library stubs not installed for "xmltodict"  [import-untyped-stubs-available]
+ homeassistant/components/systemmonitor/util.py:6: error: Library stubs not installed for "psutil._common"  [import-untyped-stubs-available]
+ homeassistant/components/startca/sensor.py:12: error: Library stubs not installed for "xmltodict"  [import-untyped-stubs-available]
+ homeassistant/components/serial/sensor.py:9: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/rest/data.py:10: error: Library stubs not installed for "xmltodict"  [import-untyped-stubs-available]
+ homeassistant/components/rainforest_raven/config_flow.py:11: error: Library stubs not installed for "serial.tools.list_ports"  [import-untyped-stubs-available]
+ homeassistant/components/rainforest_raven/config_flow.py:11: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/rainforest_raven/config_flow.py:11: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/rainforest_raven/config_flow.py:12: error: Library stubs not installed for "serial.tools.list_ports_common"  [import-untyped-stubs-available]
+ homeassistant/components/profiler/__init__.py:169: error: Library stubs not installed for "objgraph"  [import-untyped-stubs-available]
+ homeassistant/components/profiler/__init__.py:169: note: Hint: "python3 -m pip install types-objgraph"
+ homeassistant/components/pandora/media_player.py:13: error: Library stubs not installed for "pexpect"  [import-untyped-stubs-available]
+ homeassistant/components/opentherm_gw/__init__.py:8: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/ohmconnect/sensor.py:8: error: Library stubs not installed for "defusedxml.ElementTree"  [import-untyped-stubs-available]
+ homeassistant/components/ohmconnect/sensor.py:8: error: Library stubs not installed for "defusedxml"  [import-untyped-stubs-available]
+ homeassistant/components/noaa_tides/sensor.py:28: error: Library stubs not installed for "pandas"  [import-untyped-stubs-available]
+ homeassistant/components/noaa_tides/sensor.py:28: note: Hint: "python3 -m pip install pandas-stubs"
+ homeassistant/components/namecheapdns/__init__.py:6: error: Library stubs not installed for "defusedxml.ElementTree"  [import-untyped-stubs-available]
+ homeassistant/components/namecheapdns/__init__.py:6: error: Library stubs not installed for "defusedxml"  [import-untyped-stubs-available]
+ homeassistant/components/monoprice/media_player.py:5: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/monoprice/config_flow.py:9: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/monoprice/__init__.py:6: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/modem_callerid/config_flow.py:8: error: Library stubs not installed for "serial.tools.list_ports"  [import-untyped-stubs-available]
+ homeassistant/components/modem_callerid/config_flow.py:8: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/modem_callerid/config_flow.py:8: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/modem_callerid/config_flow.py:9: error: Library stubs not installed for "serial.tools.list_ports_common"  [import-untyped-stubs-available]
+ homeassistant/components/matrix/__init__.py:13: error: Library stubs not installed for "aiofiles.os"  [import-untyped-stubs-available]
+ homeassistant/components/matrix/__init__.py:13: note: Hint: "python3 -m pip install types-aiofiles"
+ homeassistant/components/matrix/__init__.py:13: error: Library stubs not installed for "aiofiles"  [import-untyped-stubs-available]
+ homeassistant/components/landisgyr_heat_meter/coordinator.py:6: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/landisgyr_heat_meter/config_flow.py:9: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/landisgyr_heat_meter/config_flow.py:10: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/lacrosse/sensor.py:10: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/habitica/util.py:10: error: Library stubs not installed for "dateutil.rrule"  [import-untyped-stubs-available]
+ homeassistant/components/elv/switch.py:9: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/cisco_ios/device_tracker.py:7: error: Library stubs not installed for "pexpect"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/config_flow.py:7: error: Library stubs not installed for "caldav"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/config_flow.py:8: error: Library stubs not installed for "caldav.lib.error"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/api.py:3: error: Library stubs not installed for "caldav"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/__init__.py:5: error: Library stubs not installed for "caldav"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/__init__.py:6: error: Library stubs not installed for "caldav.lib.error"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/__init__.py:6: note: Hint: "python3 -m pip install types-caldav"
+ homeassistant/components/blackbird/media_player.py:8: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/aurora_abb_powerone/coordinator.py:7: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/aurora_abb_powerone/config_flow.py:10: error: Library stubs not installed for "serial.tools.list_ports"  [import-untyped-stubs-available]
+ homeassistant/components/aurora_abb_powerone/config_flow.py:10: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/aurora_abb_powerone/config_flow.py:10: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/aruba/device_tracker.py:9: error: Library stubs not installed for "pexpect"  [import-untyped-stubs-available]
+ homeassistant/components/aruba/device_tracker.py:9: note: Hint: "python3 -m pip install types-pexpect"
+ homeassistant/components/velbus/config_flow.py:7: error: Library stubs not installed for "serial.tools.list_ports"  [import-untyped-stubs-available]
+ homeassistant/components/velbus/config_flow.py:7: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/velbus/config_flow.py:7: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/tuya/__init__.py:51: error: Library stubs not installed for "paho.mqtt.client"  [import-untyped-stubs-available]
+ homeassistant/components/tuya/__init__.py:51: error: Library stubs not installed for "paho.mqtt"  [import-untyped-stubs-available]
+ homeassistant/components/systemmonitor/coordinator.py:11: error: Library stubs not installed for "psutil"  [import-untyped-stubs-available]
+ homeassistant/components/systemmonitor/coordinator.py:12: error: Library stubs not installed for "psutil._common"  [import-untyped-stubs-available]
+ homeassistant/components/snmp/sensor.py:9: error: Library stubs not installed for "pyasn1.codec.ber"  [import-untyped-stubs-available]
+ homeassistant/components/snmp/sensor.py:9: note: Hint: "python3 -m pip install types-pyasn1"
+ homeassistant/components/opentherm_gw/config_flow.py:10: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/nmap_tracker/__init__.py:14: error: Library stubs not installed for "nmap"  [import-untyped-stubs-available]
+ homeassistant/components/nmap_tracker/__init__.py:14: note: Hint: "python3 -m pip install types-python-nmap"
+ homeassistant/components/litejet/config_flow.py:8: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/insteon/utils.py:14: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/influxdb/__init__.py:16: error: Library stubs not installed for "influxdb_client"  [import-untyped-stubs-available]
+ homeassistant/components/influxdb/__init__.py:17: error: Library stubs not installed for "influxdb_client.client.write_api"  [import-untyped-stubs-available]
+ homeassistant/components/influxdb/__init__.py:17: note: Hint: "python3 -m pip install types-influxdb-client"
+ homeassistant/components/influxdb/__init__.py:18: error: Library stubs not installed for "influxdb_client.rest"  [import-untyped-stubs-available]
+ homeassistant/components/ihc/auto_setup.py:6: error: Library stubs not installed for "defusedxml"  [import-untyped-stubs-available]
+ homeassistant/components/ihc/auto_setup.py:6: note: Hint: "python3 -m pip install types-defusedxml"
+ homeassistant/components/google_travel_time/sensor.py:20: error: Library stubs not installed for "google.protobuf"  [import-untyped-stubs-available]
+ homeassistant/components/google_travel_time/sensor.py:20: note: Hint: "python3 -m pip install types-protobuf"
+ homeassistant/components/google_tasks/api.py:12: error: Library stubs not installed for "httplib2"  [import-untyped-stubs-available]
+ homeassistant/components/google_tasks/api.py:12: note: Hint: "python3 -m pip install types-httplib2"
+ homeassistant/components/fritz/coordinator.py:22: error: Library stubs not installed for "xmltodict"  [import-untyped-stubs-available]
+ homeassistant/components/fritz/coordinator.py:22: note: Hint: "python3 -m pip install types-xmltodict"
+ homeassistant/components/enocean/dongle.py:9: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/dsmr/config_flow.py:17: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/dsmr/config_flow.py:18: error: Library stubs not installed for "serial.tools.list_ports"  [import-untyped-stubs-available]
+ homeassistant/components/dsmr/config_flow.py:18: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/crownstone/helpers.py:8: error: Library stubs not installed for "serial.tools.list_ports_common"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/todo.py:11: error: Library stubs not installed for "caldav"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/todo.py:12: error: Library stubs not installed for "caldav.lib.error"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/coordinator.py:11: error: Library stubs not installed for "caldav"  [import-untyped-stubs-available]
+ homeassistant/components/airnow/sensor.py:9: error: Library stubs not installed for "dateutil"  [import-untyped-stubs-available]
+ homeassistant/components/airnow/sensor.py:9: note: Hint: "python3 -m pip install types-python-dateutil"
+ homeassistant/components/acer_projector/switch.py:9: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/acer_projector/switch.py:9: note: Hint: "python3 -m pip install types-pyserial"
+ homeassistant/components/acer_projector/switch.py:9: note: (or run "mypy --install-types" to install all missing stub packages)
+ homeassistant/components/acer_projector/switch.py:9: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
+ homeassistant/components/zwave_js/config_flow.py:14: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/systemmonitor/binary_sensor.py:12: error: Library stubs not installed for "psutil"  [import-untyped-stubs-available]
+ homeassistant/components/systemmonitor/binary_sensor.py:12: note: Hint: "python3 -m pip install types-psutil"
+ homeassistant/components/mqtt/models.py:29: error: Library stubs not installed for "paho.mqtt.client"  [import-untyped-stubs-available]
+ homeassistant/components/mqtt/client.py:91: error: Library stubs not installed for "paho.mqtt.client"  [import-untyped-stubs-available]
+ homeassistant/components/mqtt/client.py:91: error: Library stubs not installed for "paho.mqtt"  [import-untyped-stubs-available]
+ homeassistant/components/mqtt/client.py:1326: error: Library stubs not installed for "paho.mqtt.matcher"  [import-untyped-stubs-available]
+ homeassistant/components/dsmr/sensor.py:20: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/caldav/calendar.py:8: error: Library stubs not installed for "caldav"  [import-untyped-stubs-available]
+ homeassistant/components/zha/config_flow.py:10: error: Library stubs not installed for "serial.tools.list_ports"  [import-untyped-stubs-available]
+ homeassistant/components/zha/config_flow.py:10: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/zha/config_flow.py:10: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/zha/config_flow.py:11: error: Library stubs not installed for "serial.tools.list_ports_common"  [import-untyped-stubs-available]
+ homeassistant/components/scrape/coordinator.py:8: error: Library stubs not installed for "bs4"  [import-untyped-stubs-available]
+ homeassistant/components/scrape/coordinator.py:8: note: Hint: "python3 -m pip install types-beautifulsoup4"
+ homeassistant/components/rfxtrx/config_flow.py:13: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/rfxtrx/config_flow.py:14: error: Library stubs not installed for "serial.tools.list_ports"  [import-untyped-stubs-available]
+ homeassistant/components/rfxtrx/config_flow.py:14: error: Library stubs not installed for "serial.tools"  [import-untyped-stubs-available]
+ homeassistant/components/rflink/__init__.py:10: error: Library stubs not installed for "serial"  [import-untyped-stubs-available]
+ homeassistant/components/mqtt/config_flow.py:3496: error: Library stubs not installed for "paho.mqtt.client"  [import-untyped-stubs-available]

... (truncated 8 lines) ...

mypy (https://.com/python/mypy)
+ mypy/report.py:29: error: Unused "type: ignore" comment  [unused-ignore]
+ mypy/report.py:29: error: Library stubs not installed for "lxml"  [import-untyped-stubs-available]
+ mypy/report.py:29: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment
+ mypy/report.py:29: note: Hint: "python3 -m pip install lxml-stubs"
+ mypy/report.py:29: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-import-untyped-stubs-available for more info
+ mypy/report.py:29: note: (or run "mypy --install-types" to install all missing stub packages)
+ mypy/test/testreports.py:11: error: Unused "type: ignore" comment  [unused-ignore]
+ mypy/test/testreports.py:11: error: Library stubs not installed for "lxml"  [import-untyped-stubs-available]
+ mypy/test/testreports.py:11: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment
+ mypy/test/testreports.py:26: error: Unused "type: ignore" comment  [unused-ignore]
+ mypy/test/testreports.py:26: error: Library stubs not installed for "lxml.etree"  [import-untyped-stubs-available]
+ mypy/test/testreports.py:26: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment
+ mypy/test/testcmdline.py:23: error: Unused "type: ignore" comment  [unused-ignore]
+ mypy/test/testcmdline.py:23: error: Library stubs not installed for "lxml"  [import-untyped-stubs-available]
+ mypy/test/testcmdline.py:23: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment
+ mypy/test/testcheck.py:28: error: Unused "type: ignore" comment  [unused-ignore]
+ mypy/test/testcheck.py:28: error: Library stubs not installed for "lxml"  [import-untyped-stubs-available]
+ mypy/test/testcheck.py:28: note: Error code "import-untyped-stubs-available" not covered by "type: ignore" comment

flake8 (https://.com/pycqa/flake8)
- src/flake8/plugins/pyflakes.py:10: error: Library stubs not installed for "pyflakes.checker"  [import-untyped]
+ src/flake8/plugins/pyflakes.py:10: error: Library stubs not installed for "pyflakes.checker"  [import-untyped-stubs-available]
- src/flake8/plugins/pyflakes.py:10: error: Library stubs not installed for "pyflakes"  [import-untyped]
+ src/flake8/plugins/pyflakes.py:10: error: Library stubs not installed for "pyflakes"  [import-untyped-stubs-available]
- tests/unit/test_pyflakes_codes.py:6: error: Library stubs not installed for "pyflakes"  [import-untyped]
+ tests/unit/test_pyflakes_codes.py:6: error: Library stubs not installed for "pyflakes"  [import-untyped-stubs-available]

comtypes (https://.com/enthought/comtypes)
- comtypes/test/test_win32com_interop.py:10: error: Library stubs not installed for "pythoncom"  [import-untyped]
+ comtypes/test/test_win32com_interop.py:10: error: Library stubs not installed for "pythoncom"  [import-untyped-stubs-available]
- comtypes/test/test_win32com_interop.py:11: error: Library stubs not installed for "win32com.client"  [import-untyped]
+ comtypes/test/test_win32com_interop.py:11: error: Library stubs not installed for "win32com.client"  [import-untyped-stubs-available]
- comtypes/test/test_win32com_interop.py:11: error: Library stubs not installed for "win32com"  [import-untyped]
+ comtypes/test/test_win32com_interop.py:11: error: Library stubs not installed for "win32com"  [import-untyped-stubs-available]
- comtypes/test/test_dispinterface.py:8: error: Library stubs not installed for "win32com.client"  [import-untyped]
+ comtypes/test/test_dispinterface.py:8: error: Library stubs not installed for "win32com.client"  [import-untyped-stubs-available]
- comtypes/test/test_dispinterface.py:9: error: Library stubs not installed for "win32com.client.gencache"  [import-untyped]
+ comtypes/test/test_dispinterface.py:9: error: Library stubs not installed for "win32com.client.gencache"  [import-untyped-stubs-available]
- comtypes/test/test_comserver.py:15: error: Library stubs not installed for "win32com.client"  [import-untyped]
+ comtypes/test/test_comserver.py:15: error: Library stubs not installed for "win32com.client"  [import-untyped-stubs-available]

pwndbg (https://.com/pwndbg/pwndbg)
- pwndbg/color/syntax_highlight.py:9: error: Library stubs not installed for "pygments"  [import-untyped]
+ pwndbg/color/syntax_highlight.py:9: error: Library stubs not installed for "pygments"  [import-untyped-stubs-available]
- pwndbg/color/syntax_highlight.py:10: error: Library stubs not installed for "pygments.formatters"  [import-untyped]
+ pwndbg/color/syntax_highlight.py:10: error: Library stubs not installed for "pygments.formatters"  [import-untyped-stubs-available]
- pwndbg/color/syntax_highlight.py:11: error: Library stubs not installed for "pygments.lexers"  [import-untyped]
+ pwndbg/color/syntax_highlight.py:11: error: Library stubs not installed for "pygments.lexers"  [import-untyped-stubs-available]
- pwndbg/color/syntax_highlight.py:12: error: Library stubs not installed for "pygments.util"  [import-untyped]
+ pwndbg/color/syntax_highlight.py:12: error: Library stubs not installed for "pygments.util"  [import-untyped-stubs-available]
- pwndbg/dbg/gdb/__init__.py:1329: error: Library stubs not installed for "psutil"  [import-untyped]
+ pwndbg/dbg/gdb/__init__.py:1329: error: Library stubs not installed for "psutil"  [import-untyped-stubs-available]
- pwndbg/aglib/onegadget.py:13: error: Library stubs not installed for "tabulate"  [import-untyped]
+ pwndbg/aglib/onegadget.py:13: error: Library stubs not installed for "tabulate"  [import-untyped-stubs-available]
- pwndbg/commands/slab.py:13: error: Library stubs not installed for "tabulate"  [import-untyped]
+ pwndbg/commands/slab.py:13: error: Library stubs not installed for "tabulate"  [import-untyped-stubs-available]
- pwndbg/commands/ptmalloc2.py:10: error: Library stubs not installed for "tabulate"  [import-untyped]
+ pwndbg/commands/ptmalloc2.py:10: error: Library stubs not installed for "tabulate"  [import-untyped-stubs-available]
- pwndbg/commands/misc.py:105: error: Library stubs not installed for "tabulate"  [import-untyped]
+ pwndbg/commands/misc.py:105: error: Library stubs not installed for "tabulate"  [import-untyped-stubs-available]
- pwndbg/commands/attachp.py:11: error: Library stubs not installed for "tabulate"  [import-untyped]
+ pwndbg/commands/attachp.py:11: error: Library stubs not installed for "tabulate"  [import-untyped-stubs-available]
- pwndbg/integration/binja.py:23: error: Library stubs not installed for "pygments"  [import-untyped]
+ pwndbg/integration/binja.py:23: error: Library stubs not installed for "pygments"  [import-untyped-stubs-available]
- pwndbg/integration/binja.py:24: error: Library stubs not installed for "pygments.formatters"  [import-untyped]
+ pwndbg/integration/binja.py:24: error: Library stubs not installed for "pygments.formatters"  [import-untyped-stubs-available]
- pwndbg/integration/binja.py:25: error: Library stubs not installed for "pygments.style"  [import-untyped]
+ pwndbg/integration/binja.py:25: error: Library stubs not installed for "pygments.style"  [import-untyped-stubs-available]
- pwndbg/integration/binja.py:26: error: Library stubs not installed for "pygments.token"  [import-untyped]
+ pwndbg/integration/binja.py:26: error: Library stubs not installed for "pygments.token"  [import-untyped-stubs-available]
- pwndbg/commands/tls.py:9: error: Library stubs not installed for "tabulate"  [import-untyped]
+ pwndbg/commands/tls.py:9: error: Library stubs not installed for "tabulate"  [import-untyped-stubs-available]
- pwndbg/commands/ai.py:89: error: Library stubs not installed for "requests"  [import-untyped]
+ pwndbg/commands/ai.py:89: error: Library stubs not installed for "requests"  [import-untyped-stubs-available]

openlibrary (https://.com/internetarchive/openlibrary)
- openlibrary/solr/update.py:7: error: Library stubs not installed for "aiofiles"  [import-untyped]
+ openlibrary/solr/update.py:7: error: Library stubs not installed for "aiofiles"  [import-untyped-stubs-available]

pandas-stubs (https://.com/pandas-dev/pandas-stubs)
- pandas-stubs/_libs/tslibs/offsets.pyi:15: error: Library stubs not installed for "dateutil.relativedelta"  [import-untyped]
+ pandas-stubs/_libs/tslibs/offsets.pyi:15: error: Library stubs not installed for "dateutil.relativedelta"  [import-untyped-stubs-available]
- tests/test_timefuncs.py:10: error: Library stubs not installed for "dateutil.relativedelta"  [import-untyped]
+ tests/test_timefuncs.py:10: error: Library stubs not installed for "dateutil.relativedelta"  [import-untyped-stubs-available]
- tests/test_scalars.py:12: error: Library stubs not installed for "dateutil.tz"  [import-untyped]
+ tests/test_scalars.py:12: error: Library stubs not installed for "dateutil.tz"  [import-untyped-stubs-available]
- tests/test_scalars.py:12: error: Library stubs not installed for "dateutil"  [import-untyped]
+ tests/test_scalars.py:12: error: Library stubs not installed for "dateutil"  [import-untyped-stubs-available]

xarray (https://.com/pydata/xarray)
- xarray/tests/test_backends.py:5470: error: Library stubs not installed for "requests"  [import-untyped]
+ xarray/tests/test_backends.py:5470: error: Library stubs not installed for "requests"  [import-untyped-stubs-available]

zulip (https://.com/zulip/zulip)
- tools/lib/capitalization.py:5: error: Library stubs not installed for "bs4"  [import-untyped]
+ tools/lib/capitalization.py:5: error: Library stubs not installed for "bs4"  [import-untyped-stubs-available]
- zerver/lib/html_diff.py:1: error: Library stubs not installed for "lxml.html"  [import-untyped]
+ zerver/lib/html_diff.py:1: error: Library stubs not installed for "lxml.html"  [import-untyped-stubs-available]
- zerver/lib/html_diff.py:1: error: Library stubs not installed for "lxml"  [import-untyped]
+ zerver/lib/html_diff.py:1: error: Library stubs not installed for "lxml"  [import-untyped-stubs-available]
- zerver/lib/html_diff.py:2: error: Library stubs not installed for "lxml.html.diff"  [import-untyped]
+ zerver/lib/html_diff.py:2: error: Library stubs not installed for "lxml.html.diff"  [import-untyped-stubs-available]
- zerver/lib/db.py:5: error: Library stubs not installed for "psycopg2.extensions"  [import-untyped]
+ zerver/lib/db.py:5: error: Library stubs not installed for "psycopg2.extensions"  [import-untyped-stubs-available]
- zerver/lib/db.py:6: error: Library stubs not installed for "psycopg2.sql"  [import-untyped]
+ zerver/lib/db.py:6: error: Library stubs not installed for "psycopg2.sql"  [import-untyped-stubs-available]
- zerver/lib/url_preview/parsers/base.py:11: error: Library stubs not installed for "bs4"  [import-untyped]
+ zerver/lib/url_preview/parsers/base.py:11: error: Library stubs not installed for "bs4"  [import-untyped-stubs-available]
- zerver/lib/url_preview/parsers/generic.py:3: error: Library stubs not installed for "bs4.element"  [import-untyped]
+ zerver/lib/url_preview/parsers/generic.py:3: error: Library stubs not installed for "bs4.element"  [import-untyped-stubs-available]
- zerver/lib/migrate.py:9: error: Library stubs not installed for "psycopg2.sql"  [import-untyped]
+ zerver/lib/migrate.py:9: error: Library stubs not installed for "psycopg2.sql"  [import-untyped-stubs-available]
- zerver/worker/user_activity.py:7: error: Library stubs not installed for "psycopg2.sql"  [import-untyped]
+ zerver/worker/user_activity.py:7: error: Library stubs not installed for "psycopg2.sql"  [import-untyped-stubs-available]
- zproject/wsgi.py:79: error: Library stubs not installed for "uwsgi"  [import-untyped]
+ zproject/wsgi.py:79: error: Library stubs not installed for "uwsgi"  [import-untyped-stubs-available]
- tools/tests/test_capitalization_checker.py:3: error: Library stubs not installed for "bs4"  [import-untyped]
+ tools/tests/test_capitalization_checker.py:3: error: Library stubs not installed for "bs4"  [import-untyped-stubs-available]
- zerver/migrations/0705_stream_subscriber_count_data_migration.py:4: error: Library stubs not installed for "psycopg2"  [import-untyped]
+ zerver/migrations/0705_stream_subscriber_count_data_migration.py:4: error: Library stubs not installed for "psycopg2"  [import-untyped-stubs-available]
- zerver/migrations/0696_rename_no_topic_to_empty_string_topic.py:11: error: Library stubs not installed for "psycopg2.sql"  [import-untyped]
+ zerver/migrations/0696_rename_no_topic_to_empty_string_topic.py:11: error: Library stubs not installed for "psycopg2.sql"  [import-untyped-stubs-available]
- zerver/migrations/0691_backfill_message_is_channel_message.py:4: error: Library stubs not installed for "psycopg2.sql"  [import-untyped]
+ zerver/migrations/0691_backfill_message_is_channel_message.py:4: error: Library stubs not installed for "psycopg2.sql"  [import-untyped-stubs-available]
- zerver/migrations/0689_mark_navigation_tour_video_as_read.py:7: error: Library stubs not installed for "psycopg2.sql"  [import-untyped]
+ zerver/migrations/0689_mark_navigation_tour_video_as_read.py:7: error: Library stubs not installed for "psycopg2.sql"  [import-untyped-stubs-available]
- zerver/migrations/0680_rename_general_chat_to_empty_string_topic.py:11: error: Library stubs not installed for "psycopg2.sql"  [import-untyped]

... (truncated 177 lines) ...```

Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

Split import-untyped into two different error codes depending on whether stubs are available to install
@wyattscarpenter