Skip to content

Comments

[ty] Add "Did you mean" suggestions for stdlib import typos#23341

Closed
AlexWaygood wants to merge 4 commits intomainfrom
claude/merge-main-pr-4p0CV
Closed

[ty] Add "Did you mean" suggestions for stdlib import typos#23341
AlexWaygood wants to merge 4 commits intomainfrom
claude/merge-main-pr-4p0CV

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Feb 16, 2026

Summary

With our new Levenshtein implementation that landed in #23291, we can give suggestions here that are generally pretty good

Test Plan

snapshots

@AlexWaygood AlexWaygood changed the title Add "Did you mean" suggestions for stdlib import typos [ty] Add "Did you mean" suggestions for stdlib import typos Feb 16, 2026
@AlexWaygood AlexWaygood added ty Multi-file analysis & type inference diagnostics Related to reporting of diagnostics. labels Feb 16, 2026
@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 16, 2026

Typing conformance results

No changes detected ✅

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 16, 2026

mypy_primer results

Changes were detected when running on open source projects
pegen (https://github.com/we-like-parsers/pegen)
- src/pegen/utils.py:78:16: error[unresolved-import] Cannot resolve imported module `psutil`
+ src/pegen/utils.py:78:16: error[unresolved-import] Cannot resolve imported module `psutil`: Did you mean `pkgutil`?

bandersnatch (https://github.com/pypa/bandersnatch)
- src/bandersnatch/tests/conftest.py:16:6: error[unresolved-import] Cannot resolve imported module `s3path`
+ src/bandersnatch/tests/conftest.py:16:6: error[unresolved-import] Cannot resolve imported module `s3path`: Did you mean `ntpath`?
- src/bandersnatch/tests/plugins/test_storage_plugin_s3.py:4:6: error[unresolved-import] Cannot resolve imported module `s3path`
+ src/bandersnatch/tests/plugins/test_storage_plugin_s3.py:4:6: error[unresolved-import] Cannot resolve imported module `s3path`: Did you mean `ntpath`?
- src/bandersnatch_storage_plugins/s3.py:18:6: error[unresolved-import] Cannot resolve imported module `s3path`
+ src/bandersnatch_storage_plugins/s3.py:18:6: error[unresolved-import] Cannot resolve imported module `s3path`: Did you mean `ntpath`?
- src/bandersnatch_storage_plugins/s3.py:19:6: error[unresolved-import] Cannot resolve imported module `s3path`
+ src/bandersnatch_storage_plugins/s3.py:19:6: error[unresolved-import] Cannot resolve imported module `s3path`: Did you mean `ntpath`?
- src/bandersnatch_storage_plugins/s3.py:20:6: error[unresolved-import] Cannot resolve imported module `s3path`
+ src/bandersnatch_storage_plugins/s3.py:20:6: error[unresolved-import] Cannot resolve imported module `s3path`: Did you mean `ntpath`?

pip (https://github.com/pypa/pip)
- src/pip/_vendor/distlib.pyi:1:6: error[unresolved-import] Cannot resolve imported module `distlib`
+ src/pip/_vendor/distlib.pyi:1:6: error[unresolved-import] Cannot resolve imported module `distlib`: Did you mean `difflib`?
- src/pip/_vendor/distlib/compat.py:650:14: error[unresolved-import] Cannot resolve imported module `thread`
+ src/pip/_vendor/distlib/compat.py:650:14: error[unresolved-import] Cannot resolve imported module `thread`: Did you mean `threading`?
- src/pip/_vendor/distlib/util.py:1952:14: error[unresolved-import] Cannot resolve imported module `_aix_support`
+ src/pip/_vendor/distlib/util.py:1952:14: error[unresolved-import] Cannot resolve imported module `_aix_support`: Did you mean `_osx_support`?
- src/pip/_vendor/pygments/sphinxext.py:14:6: error[unresolved-import] Cannot resolve imported module `docutils`
+ src/pip/_vendor/pygments/sphinxext.py:14:6: error[unresolved-import] Cannot resolve imported module `docutils`: Did you mean `distutils`?
- src/pip/_vendor/urllib3.pyi:1:6: error[unresolved-import] Cannot resolve imported module `urllib3`
+ src/pip/_vendor/urllib3.pyi:1:6: error[unresolved-import] Cannot resolve imported module `urllib3`: Did you mean `urllib`?
- src/pip/_vendor/urllib3/contrib/socks.py:44:12: error[unresolved-import] Cannot resolve imported module `socks`
+ src/pip/_vendor/urllib3/contrib/socks.py:44:12: error[unresolved-import] Cannot resolve imported module `socks`: Did you mean `socket`?

beartype (https://github.com/beartype/beartype)
- beartype/_check/convert/_reduce/_nonpep/api/redapinumpy.py:100:10: error[unresolved-import] Cannot resolve imported module `numpy`
+ beartype/_check/convert/_reduce/_nonpep/api/redapinumpy.py:100:10: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- beartype/_util/api/external/utilnumpy.py:55:10: error[unresolved-import] Cannot resolve imported module `numpy`
+ beartype/_util/api/external/utilnumpy.py:55:10: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- beartype/_util/api/external/utilnumpy.py:101:10: error[unresolved-import] Cannot resolve imported module `numpy`
+ beartype/_util/api/external/utilnumpy.py:101:10: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- beartype/_util/api/external/utilnumpy.py:237:10: error[unresolved-import] Cannot resolve imported module `numpy`
+ beartype/_util/api/external/utilnumpy.py:237:10: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- beartype/bite/kind/inferthirdparty.py:124:10: error[unresolved-import] Cannot resolve imported module `numpy`
+ beartype/bite/kind/inferthirdparty.py:124:10: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?

spack (https://github.com/spack/spack)
- .github/workflows/bin/format-rst.py:20:6: error[unresolved-import] Cannot resolve imported module `docutils`
+ .github/workflows/bin/format-rst.py:20:6: error[unresolved-import] Cannot resolve imported module `docutils`: Did you mean `distutils`?
- lib/spack/spack/detection/path.py:169:33: error[invalid-argument-type] Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[Unknown | int | str | ... omitted 3 union elements]`
+ lib/spack/spack/detection/path.py:169:33: error[invalid-argument-type] Argument to function `dedupe_paths` is incorrect: Expected `list[str]`, found `Unknown | list[int | str | bytes | ... omitted 3 union elements]`
- lib/spack/spack/test/installer.py:12:8: error[unresolved-import] Cannot resolve imported module `py`
+ lib/spack/spack/test/installer.py:12:8: error[unresolved-import] Cannot resolve imported module `py`: Did you mean `pty`?
- lib/spack/spack/verify_libraries.py:164:46: error[invalid-argument-type] Argument to function `candidate_matches` is incorrect: Expected `bytes`, found `bytes | Unknown | str | PathLike[str] | PathLike[bytes]`
+ lib/spack/spack/verify_libraries.py:164:46: error[invalid-argument-type] Argument to function `candidate_matches` is incorrect: Expected `bytes`, found `Unknown | bytes | str | PathLike[str] | PathLike[bytes]`
- lib/spack/spack/verify_libraries.py:165:17: error[invalid-assignment] Invalid subscript assignment with key of type `bytes | Unknown | str | PathLike[str] | PathLike[bytes]` and value of type `bytes | Unknown | str | PathLike[str] | PathLike[bytes]` on object of type `dict[bytes, bytes]`
+ lib/spack/spack/verify_libraries.py:165:17: error[invalid-assignment] Invalid subscript assignment with key of type `Unknown | bytes | str | PathLike[str] | PathLike[bytes]` and value of type `Unknown | bytes | str | PathLike[str] | PathLike[bytes]` on object of type `dict[bytes, bytes]`
- lib/spack/spack/verify_libraries.py:170:57: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[bytes | Unknown | str | PathLike[str] | PathLike[bytes]]`
+ lib/spack/spack/verify_libraries.py:170:57: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[Unknown | bytes | str | PathLike[str] | PathLike[bytes]]`
- lib/spack/spack/verify_libraries.py:170:69: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[bytes | Unknown | str | PathLike[str] | PathLike[bytes]]`
+ lib/spack/spack/verify_libraries.py:170:69: error[invalid-argument-type] Argument to bound method `__init__` is incorrect: Expected `list[bytes]`, found `list[Unknown | bytes | str | PathLike[str] | PathLike[bytes]]`

stone (https://github.com/dropbox/stone)
- stone/cli_helpers.py:3:6: error[unresolved-import] Cannot resolve imported module `ply`
+ stone/cli_helpers.py:3:6: error[unresolved-import] Cannot resolve imported module `ply`: Did you mean `pty`?

twine (https://github.com/pypa/twine)
- twine/auth.py:13:6: error[unresolved-import] Cannot resolve imported module `id`
+ twine/auth.py:13:6: error[unresolved-import] Cannot resolve imported module `id`: Did you mean `io`?

werkzeug (https://github.com/pallets/werkzeug)
- src/werkzeug/_internal.py:69:20: error[unresolved-import] Cannot resolve imported module `colorama`
+ src/werkzeug/_internal.py:69:20: error[unresolved-import] Cannot resolve imported module `colorama`: Did you mean `colorsys`?

black (https://github.com/psf/black)
- src/black/files.py:32:12: error[unresolved-import] Cannot resolve imported module `colorama`
+ src/black/files.py:32:12: error[unresolved-import] Cannot resolve imported module `colorama`: Did you mean `colorsys`?
- src/black/handle_ipynb_magics.py:106:10: error[unresolved-import] Cannot resolve imported module `tokenize_rt`
+ src/black/handle_ipynb_magics.py:106:10: error[unresolved-import] Cannot resolve imported module `tokenize_rt`: Did you mean `tokenize`?
- src/black/handle_ipynb_magics.py:130:10: error[unresolved-import] Cannot resolve imported module `tokenize_rt`
+ src/black/handle_ipynb_magics.py:130:10: error[unresolved-import] Cannot resolve imported module `tokenize_rt`: Did you mean `tokenize`?

paasta (https://github.com/yelp/paasta)
- paasta_tools/cli/cli.py:28:8: error[unresolved-import] Cannot resolve imported module `argcomplete`
+ paasta_tools/cli/cli.py:28:8: error[unresolved-import] Cannot resolve imported module `argcomplete`: Did you mean `rlcompleter`?
- paasta_tools/cli/cmds/local_run.py:34:6: error[unresolved-import] Cannot resolve imported module `docker`
+ paasta_tools/cli/cmds/local_run.py:34:6: error[unresolved-import] Cannot resolve imported module `docker`: Did you mean `socket`?
- paasta_tools/oom_logger.py:43:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ paasta_tools/oom_logger.py:43:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- paasta_tools/secret_providers/vault.py:13:12: error[unresolved-import] Cannot resolve imported module `hvac`
+ paasta_tools/secret_providers/vault.py:13:12: error[unresolved-import] Cannot resolve imported module `hvac`: Did you mean `hmac`?
- paasta_tools/utils.py:78:6: error[unresolved-import] Cannot resolve imported module `docker`
+ paasta_tools/utils.py:78:6: error[unresolved-import] Cannot resolve imported module `docker`: Did you mean `socket`?

pytest (https://github.com/pytest-dev/pytest)
- src/_pytest/_io/terminalwriter.py:80:24: error[unresolved-import] Cannot resolve imported module `colorama`
+ src/_pytest/_io/terminalwriter.py:80:24: error[unresolved-import] Cannot resolve imported module `colorama`: Did you mean `colorsys`?
- src/_pytest/config/findpaths.py:13:8: error[unresolved-import] Cannot resolve imported module `iniconfig`
+ src/_pytest/config/findpaths.py:13:8: error[unresolved-import] Cannot resolve imported module `iniconfig`: Did you mean `sysconfig`?
- src/_pytest/legacypath.py:14:6: error[unresolved-import] Cannot resolve imported module `iniconfig`
+ src/_pytest/legacypath.py:14:6: error[unresolved-import] Cannot resolve imported module `iniconfig`: Did you mean `sysconfig`?
- src/_pytest/pytester.py:38:6: error[unresolved-import] Cannot resolve imported module `iniconfig`
+ src/_pytest/pytester.py:38:6: error[unresolved-import] Cannot resolve imported module `iniconfig`: Did you mean `sysconfig`?
- src/_pytest/pytester.py:39:6: error[unresolved-import] Cannot resolve imported module `iniconfig`
+ src/_pytest/pytester.py:39:6: error[unresolved-import] Cannot resolve imported module `iniconfig`: Did you mean `sysconfig`?
- src/_pytest/python_api.py:18:10: error[unresolved-import] Cannot resolve imported module `numpy`
+ src/_pytest/python_api.py:18:10: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- src/_pytest/python_api.py:199:16: error[unresolved-import] Cannot resolve imported module `numpy`
+ src/_pytest/python_api.py:199:16: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- src/_pytest/python_api.py:215:16: error[unresolved-import] Cannot resolve imported module `numpy`
+ src/_pytest/python_api.py:215:16: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- testing/example_scripts/unittest/test_unittest_asynctest.py:8:8: error[unresolved-import] Cannot resolve imported module `asynctest`
+ testing/example_scripts/unittest/test_unittest_asynctest.py:8:8: error[unresolved-import] Cannot resolve imported module `asynctest`: Did you mean `asynchat`?
- testing/test_monkeypatch.py:481:10: error[unresolved-import] Cannot resolve imported module `main_app`
+ testing/test_monkeypatch.py:481:10: error[unresolved-import] Cannot resolve imported module `main_app`: Did you mean `mailcap`?
- testing/test_pytester.py:284:16: error[unresolved-import] Cannot resolve imported module `imported`
+ testing/test_pytester.py:284:16: error[unresolved-import] Cannot resolve imported module `imported`: Did you mean `importlib`?

scrapy (https://github.com/scrapy/scrapy)
- conftest.py:56:12: error[unresolved-import] Cannot resolve imported module `httpx`
+ conftest.py:56:12: error[unresolved-import] Cannot resolve imported module `httpx`: Did you mean `http`?
- docs/_ext/scrapydocs.py:6:6: error[unresolved-import] Cannot resolve imported module `docutils`
+ docs/_ext/scrapydocs.py:6:6: error[unresolved-import] Cannot resolve imported module `docutils`: Did you mean `distutils`?
- scrapy/core/downloader/handlers/_httpx.py:12:8: error[unresolved-import] Cannot resolve imported module `httpx`
+ scrapy/core/downloader/handlers/_httpx.py:12:8: error[unresolved-import] Cannot resolve imported module `httpx`: Did you mean `http`?
- scrapy/core/http2/stream.py:25:10: error[unresolved-import] Cannot resolve imported module `hpack`
+ scrapy/core/http2/stream.py:25:10: error[unresolved-import] Cannot resolve imported module `hpack`: Did you mean `hmac`?
- scrapy/downloadermiddlewares/ajaxcrawl.py:8:6: error[unresolved-import] Cannot resolve imported module `w3lib`
+ scrapy/downloadermiddlewares/ajaxcrawl.py:8:6: error[unresolved-import] Cannot resolve imported module `w3lib`: Did you mean `zlib`?
- scrapy/linkextractors/lxmlhtml.py:15:6: error[unresolved-import] Cannot resolve imported module `lxml`
+ scrapy/linkextractors/lxmlhtml.py:15:6: error[unresolved-import] Cannot resolve imported module `lxml`: Did you mean `xml`?
- scrapy/utils/iterators.py:10:6: error[unresolved-import] Cannot resolve imported module `lxml`
+ scrapy/utils/iterators.py:10:6: error[unresolved-import] Cannot resolve imported module `lxml`: Did you mean `xml`?
- scrapy/utils/response.py:16:6: error[unresolved-import] Cannot resolve imported module `w3lib`
+ scrapy/utils/response.py:16:6: error[unresolved-import] Cannot resolve imported module `w3lib`: Did you mean `zlib`?
- tests/test_crawler.py:18:6: error[unresolved-import] Cannot resolve imported module `w3lib`
+ tests/test_crawler.py:18:6: error[unresolved-import] Cannot resolve imported module `w3lib`: Did you mean `zlib`?
- tests/test_http_response.py:6:6: error[unresolved-import] Cannot resolve imported module `w3lib`
+ tests/test_http_response.py:6:6: error[unresolved-import] Cannot resolve imported module `w3lib`: Did you mean `zlib`?
- tests/test_linkextractors.py:8:6: error[unresolved-import] Cannot resolve imported module `w3lib`
+ tests/test_linkextractors.py:8:6: error[unresolved-import] Cannot resolve imported module `w3lib`: Did you mean `zlib`?

rich (https://github.com/Textualize/rich)
- tests/test_tools.py:17:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, str | Unknown]]`
+ tests/test_tools.py:17:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, Unknown | str]]`
- tests/test_tools.py:18:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, str | Unknown]]`
+ tests/test_tools.py:18:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, Unknown | str]]`
- tests/test_tools.py:19:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, str | Unknown]]`
+ tests/test_tools.py:19:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, Unknown | str]]`
- tests/test_tools.py:20:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, str | Unknown]]`
+ tests/test_tools.py:20:17: error[invalid-argument-type] Argument to function `next` is incorrect: Expected `SupportsNext[Unknown]`, found `Iterable[tuple[bool, Unknown | str]]`

alerta (https://github.com/alerta/alerta)
- alerta/utils/format.py:33:18: error[unresolved-import] Cannot resolve imported module `bson`
+ alerta/utils/format.py:33:18: error[unresolved-import] Cannot resolve imported module `bson`: Did you mean `json`?
- tests/integration/test_auth_saml.py:3:6: error[unresolved-import] Cannot resolve imported module `lxml`
+ tests/integration/test_auth_saml.py:3:6: error[unresolved-import] Cannot resolve imported module `lxml`: Did you mean `xml`?

pylint (https://github.com/pycqa/pylint)
- pylint/checkers/utils.py:9:8: error[unresolved-import] Cannot resolve imported module `_string`
+ pylint/checkers/utils.py:9:8: error[unresolved-import] Cannot resolve imported module `_string`: Did you mean `string`?

starlette (https://github.com/encode/starlette)
- starlette/testclient.py:38:12: error[unresolved-import] Cannot resolve imported module `httpx`
+ starlette/testclient.py:38:12: error[unresolved-import] Cannot resolve imported module `httpx`: Did you mean `http`?
- tests/types.py:5:8: error[unresolved-import] Cannot resolve imported module `httpx`
+ tests/types.py:5:8: error[unresolved-import] Cannot resolve imported module `httpx`: Did you mean `http`?

ignite (https://github.com/pytorch/ignite)
- examples/fast_neural_style/neural_style.py:7:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/fast_neural_style/neural_style.py:7:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/mnist/mnist_with_visdom.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/mnist/mnist_with_visdom.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/notebooks/FashionMNIST.ipynb:cell 5:2:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/notebooks/FashionMNIST.ipynb:cell 5:2:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/notebooks/VAE.ipynb:cell 7:1:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/notebooks/VAE.ipynb:cell 7:1:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/references/classification/imagenet/vis.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/references/classification/imagenet/vis.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/references/segmentation/pascal_voc2012/dataflow.py:2:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/references/segmentation/pascal_voc2012/dataflow.py:2:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/references/segmentation/pascal_voc2012/vis.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/references/segmentation/pascal_voc2012/vis.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/reinforcement_learning/actor_critic.py:4:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/reinforcement_learning/actor_critic.py:4:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/reinforcement_learning/reinforce.py:4:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/reinforcement_learning/reinforce.py:4:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/siamese_network/siamese_network.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/siamese_network/siamese_network.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- examples/super_resolution/super_resolve.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ examples/super_resolution/super_resolve.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- ignite/engine/deterministic.py:90:16: error[unresolved-import] Cannot resolve imported module `numpy`
+ ignite/engine/deterministic.py:90:16: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- ignite/engine/deterministic.py:107:16: error[unresolved-import] Cannot resolve imported module `numpy`
+ ignite/engine/deterministic.py:107:16: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- ignite/metrics/gan/fid.py:25:16: error[unresolved-import] Cannot resolve imported module `numpy`
+ ignite/metrics/gan/fid.py:25:16: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- ignite/metrics/gan/fid.py:177:20: error[unresolved-import] Cannot resolve imported module `numpy`
+ ignite/metrics/gan/fid.py:177:20: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- ignite/metrics/gan/fid.py:182:20: error[unresolved-import] Cannot resolve imported module `scipy`
+ ignite/metrics/gan/fid.py:182:20: error[unresolved-import] Cannot resolve imported module `scipy`: Did you mean `copy`?
- ignite/utils.py:390:16: error[unresolved-import] Cannot resolve imported module `numpy`
+ ignite/utils.py:390:16: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/distributed/comp_models/test_xla.py:198:10: error[unresolved-import] Cannot resolve imported module `joblib`
+ tests/ignite/distributed/comp_models/test_xla.py:198:10: error[unresolved-import] Cannot resolve imported module `joblib`: Did you mean `poplib`?
- tests/ignite/engine/test_deterministic.py:7:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/engine/test_deterministic.py:7:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/engine/test_engine.py:5:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/engine/test_engine.py:5:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/handlers/test_lr_finder.py:442:12: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/handlers/test_lr_finder.py:442:12: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/handlers/test_lr_finder.py:456:12: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/handlers/test_lr_finder.py:456:12: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/handlers/test_param_scheduler.py:4:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/handlers/test_param_scheduler.py:4:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/handlers/test_terminate_on_nan.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/handlers/test_terminate_on_nan.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/handlers/test_tqdm_logger.py:7:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/handlers/test_tqdm_logger.py:7:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/clustering/test_calinski_harabasz_score.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/clustering/test_calinski_harabasz_score.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/clustering/test_davies_bouldin_score.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/clustering/test_davies_bouldin_score.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/clustering/test_silhouette_score.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/clustering/test_silhouette_score.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/gan/test_fid.py:7:8: error[unresolved-import] Cannot resolve imported module `scipy`
+ tests/ignite/metrics/gan/test_fid.py:7:8: error[unresolved-import] Cannot resolve imported module `scipy`: Did you mean `copy`?
- tests/ignite/metrics/gan/test_fid.py:9:6: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/gan/test_fid.py:9:6: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test__base.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test__base.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_canberra_metric.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_canberra_metric.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_fractional_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_fractional_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_geometric_mean_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_geometric_mean_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_geometric_mean_relative_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_geometric_mean_relative_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_maximum_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_maximum_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_mean_absolute_relative_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_mean_absolute_relative_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_mean_normalized_bias.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_mean_normalized_bias.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_median_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_median_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_median_absolute_percentage_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_median_absolute_percentage_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_median_relative_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_median_relative_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_pearson_correlation.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_pearson_correlation.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/regression/test_wave_hedges_distance.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/regression/test_wave_hedges_distance.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_accumulation.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_accumulation.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_confusion_matrix.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_confusion_matrix.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_cosine_similarity.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_cosine_similarity.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_entropy.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_entropy.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_hsic.py:4:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_hsic.py:4:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_js_divergence.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_js_divergence.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_kl_divergence.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_kl_divergence.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_maximum_mean_discrepancy.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_maximum_mean_discrepancy.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_mean_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_mean_absolute_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_mean_absolute_error.py:56:12: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_mean_absolute_error.py:56:12: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_mean_average_precision.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_mean_average_precision.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_mean_pairwise_distance.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_mean_pairwise_distance.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_mean_squared_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_mean_squared_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_metric.py:6:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_metric.py:6:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_metrics_lambda.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_metrics_lambda.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_multilabel_confusion_matrix.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_multilabel_confusion_matrix.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_mutual_information.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_mutual_information.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_psnr.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_psnr.py:1:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_root_mean_squared_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_root_mean_squared_error.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_running_average.py:5:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_running_average.py:5:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_ssim.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_ssim.py:3:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/test_top_k_categorical_accuracy.py:38:12: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/test_top_k_categorical_accuracy.py:38:12: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- tests/ignite/metrics/vision/test_object_detection_map.py:7:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ tests/ignite/metrics/vision/test_object_detection_map.py:7:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?

mypy-protobuf (https://github.com/dropbox/mypy-protobuf)
- test/generated/testproto/grpc/dummy_pb2_grpc.pyi:7:6: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated/testproto/grpc/dummy_pb2_grpc.pyi:7:6: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated/testproto/grpc/dummy_pb2_grpc.pyi:11:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated/testproto/grpc/dummy_pb2_grpc.pyi:11:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated/testproto/grpc/import_pb2_grpc.pyi:8:6: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated/testproto/grpc/import_pb2_grpc.pyi:8:6: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated/testproto/grpc/import_pb2_grpc.pyi:11:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated/testproto/grpc/import_pb2_grpc.pyi:11:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated_async_only/testproto/grpc/dummy_pb2_grpc.pyi:7:6: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated_async_only/testproto/grpc/dummy_pb2_grpc.pyi:7:6: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated_async_only/testproto/grpc/import_pb2_grpc.pyi:8:6: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated_async_only/testproto/grpc/import_pb2_grpc.pyi:8:6: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated_async_only/testproto/test_no_generic_services_pb2_grpc.pyi:7:6: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated_async_only/testproto/test_no_generic_services_pb2_grpc.pyi:7:6: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated_async_only/testproto/test_pb2_grpc.pyi:7:6: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated_async_only/testproto/test_pb2_grpc.pyi:7:6: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated_sync_only/testproto/grpc/dummy_pb2_grpc.pyi:10:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated_sync_only/testproto/grpc/dummy_pb2_grpc.pyi:10:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated_sync_only/testproto/grpc/import_pb2_grpc.pyi:10:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated_sync_only/testproto/grpc/import_pb2_grpc.pyi:10:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated_sync_only/testproto/test_no_generic_services_pb2_grpc.pyi:9:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated_sync_only/testproto/test_no_generic_services_pb2_grpc.pyi:9:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/generated_sync_only/testproto/test_pb2_grpc.pyi:9:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/generated_sync_only/testproto/test_pb2_grpc.pyi:9:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/sync_only/test_sync_only.py:12:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/sync_only/test_sync_only.py:12:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test/test_grpc_usage.py:3:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ test/test_grpc_usage.py:3:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- test_negative/negative.py:11:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ test_negative/negative.py:11:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?

porcupine (https://github.com/Akuli/porcupine)
- porcupine/plugins/filetypes.py:14:8: error[unresolved-import] Cannot resolve imported module `tomli`
+ porcupine/plugins/filetypes.py:14:8: error[unresolved-import] Cannot resolve imported module `tomli`: Did you mean `tomllib`?

sockeye (https://github.com/awslabs/sockeye)
- sockeye/beam_search.py:21:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/beam_search.py:21:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/constants.py:18:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/constants.py:18:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/data_io.py:31:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/data_io.py:31:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/evaluate.py:24:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/evaluate.py:24:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/generate_decoder_states.py:19:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/generate_decoder_states.py:19:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/inference.py:26:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/inference.py:26:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/knn.py:16:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/knn.py:16:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/layers.py:19:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/layers.py:19:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/lexicon.py:25:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/lexicon.py:25:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/loss.py:20:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/loss.py:20:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/model.py:22:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/model.py:22:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/rerank.py:25:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/rerank.py:25:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/scoring.py:22:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/scoring.py:22:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/training.py:28:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/training.py:28:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye/utils.py:34:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye/utils.py:34:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye_contrib/plot_metrics.py:20:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye_contrib/plot_metrics.py:20:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- sockeye_contrib/rouge.py:27:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ sockeye_contrib/rouge.py:27:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/common.py:20:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/common.py:20:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_beam_search.py:17:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_beam_search.py:17:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_beam_search.py:20:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_beam_search.py:20:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_data_io.py:19:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_data_io.py:19:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_inference.py:19:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_inference.py:19:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_knn.py:14:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_knn.py:14:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_layers.py:15:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_layers.py:15:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_lexicon.py:17:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_lexicon.py:17:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_loss.py:16:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_loss.py:16:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_lr_scheduler.py:16:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_lr_scheduler.py:16:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_reranking.py:14:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_reranking.py:14:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?
- test/unit/test_utils.py:21:8: error[unresolved-import] Cannot resolve imported module `numpy`
+ test/unit/test_utils.py:21:8: error[unresolved-import] Cannot resolve imported module `numpy`: Did you mean `runpy`?

dulwich (https://github.com/dulwich/dulwich)
- dulwich/pack.py:107:10: error[unresolved-import] Cannot resolve imported module `cdifflib`
+ dulwich/pack.py:107:10: error[unresolved-import] Cannot resolve imported module `cdifflib`: Did you mean `difflib`?

pylox (https://github.com/sco1/pylox)
- pylox/containers/array.py:146:9: error[invalid-assignment] Object of type `deque[None | Unknown]` is not assignable to attribute `fields` of type `dict[Unknown, Unknown]`
+ pylox/containers/array.py:146:9: error[invalid-assignment] Object of type `deque[Unknown | None]` is not assignable to attribute `fields` of type `dict[Unknown, Unknown]`
- pylox/lox.py:5:8: error[unresolved-import] Cannot resolve imported module `typer`
+ pylox/lox.py:5:8: error[unresolved-import] Cannot resolve imported module `typer`: Did you mean `types`?
- tool/generate_ast.py:5:8: error[unresolved-import] Cannot resolve imported module `typer`
+ tool/generate_ast.py:5:8: error[unresolved-import] Cannot resolve imported module `typer`: Did you mean `types`?
- tool/generate_tests.py:4:8: error[unresolved-import] Cannot resolve imported module `typer`
+ tool/generate_tests.py:4:8: error[unresolved-import] Cannot resolve imported module `typer`: Did you mean `types`?

check-jsonschema (https://github.com/python-jsonschema/check-jsonschema)
- src/check_jsonschema/parsers/json5.py:15:16: error[unresolved-import] Cannot resolve imported module `json5`
+ src/check_jsonschema/parsers/json5.py:15:16: error[unresolved-import] Cannot resolve imported module `json5`: Did you mean `json`?
- src/check_jsonschema/parsers/json_.py:7:12: error[unresolved-import] Cannot resolve imported module `orjson`
+ src/check_jsonschema/parsers/json_.py:7:12: error[unresolved-import] Cannot resolve imported module `orjson`: Did you mean `json`?

poetry (https://github.com/python-poetry/poetry)
- src/poetry/installation/chef.py:17:10: error[unresolved-import] Cannot resolve imported module `build`
+ src/poetry/installation/chef.py:17:10: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- src/poetry/utils/isolated_build.py:11:6: error[unresolved-import] Cannot resolve imported module `build`
+ src/poetry/utils/isolated_build.py:11:6: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- src/poetry/utils/isolated_build.py:26:10: error[unresolved-import] Cannot resolve imported module `build`
+ src/poetry/utils/isolated_build.py:26:10: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- src/poetry/utils/isolated_build.py:27:10: error[unresolved-import] Cannot resolve imported module `build`
+ src/poetry/utils/isolated_build.py:27:10: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- src/poetry/utils/isolated_build.py:184:10: error[unresolved-import] Cannot resolve imported module `build`
+ src/poetry/utils/isolated_build.py:184:10: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- tests/console/commands/test_build.py:291:10: error[unresolved-import] Cannot resolve imported module `build`
+ tests/console/commands/test_build.py:291:10: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- tests/inspection/test_info.py:13:6: error[unresolved-import] Cannot resolve imported module `build`
+ tests/inspection/test_info.py:13:6: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- tests/inspection/test_info.py:14:6: error[unresolved-import] Cannot resolve imported module `build`
+ tests/inspection/test_info.py:14:6: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- tests/installation/test_chef.py:13:6: error[unresolved-import] Cannot resolve imported module `build`
+ tests/installation/test_chef.py:13:6: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- tests/installation/test_executor.py:16:6: error[unresolved-import] Cannot resolve imported module `build`
+ tests/installation/test_executor.py:16:6: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?
- tests/installation/test_executor.py:17:6: error[unresolved-import] Cannot resolve imported module `build`
+ tests/installation/test_executor.py:17:6: error[unresolved-import] Cannot resolve imported module `build`: Did you mean `uuid`?

aiohttp-devtools (https://github.com/aio-libs/aiohttp-devtools)
- aiohttp_devtools/logs.py:12:6: error[unresolved-import] Cannot resolve imported module `devtools`
+ aiohttp_devtools/logs.py:12:6: error[unresolved-import] Cannot resolve imported module `devtools`: Did you mean `itertools`?

pandera (https://github.com/pandera-dev/pandera)
- pandera/backends/pandas/builtin_hypotheses.py:16:10: error[unresolved-import] Cannot resolve imported module `scipy`
+ pandera/backends/pandas/builtin_hypotheses.py:16:10: error[unresolved-import] Cannot resolve imported module `scipy`: Did you mean `copy`?
- pandera/backends/pandas/builtin_hypotheses.py:38:10: error[unresolved-import] Cannot resolve imported module `scipy`
+ pandera/backends/pandas/builtin_hypotheses.py:38:10: error[unresolved-import] Cannot resolve imported module `scipy`: Did you mean `copy`?
- pandera/io/pandas_io.py:24:10: error[unresolved-import] Cannot resolve imported module `frictionless`
+ pandera/io/pandas_io.py:24:10: error[unresolved-import] Cannot resolve imported module `frictionless`: Did you mean `fractions`?
- pandera/io/pandas_io.py:943:14: error[unresolved-import] Cannot resolve imported module `frictionless`
+ pandera/io/pandas_io.py:943:14: error[unresolved-import] Cannot resolve imported module `frictionless`: Did you mean `fractions`?
- tests/hypotheses/test_hypotheses.py:17:10: error[unresolved-import] Cannot resolve imported module `scipy`
+ tests/hypotheses/test_hypotheses.py:17:10: error[unresolved-import] Cannot resolve imported module `scipy`: Did you mean `copy`?
- tests/pandas/test_extension_modules.py:9:10: error[unresolved-import] Cannot resolve imported module `scipy`
+ tests/pandas/test_extension_modules.py:9:10: error[unresolved-import] Cannot resolve imported module `scipy`: Did you mean `copy`?
- tests/pandas/test_multithreaded.py:5:6: error[unresolved-import] Cannot resolve imported module `joblib`
+ tests/pandas/test_multithreaded.py:5:6: error[unresolved-import] Cannot resolve imported module `joblib`: Did you mean `poplib`?
- tests/pandas/test_pandas_parallel.py:4:6: error[unresolved-import] Cannot resolve imported module `joblib`
+ tests/pandas/test_pandas_parallel.py:4:6: error[unresolved-import] Cannot resolve imported module `joblib`: Did you mean `poplib`?
- tests/polars/test_polars_parallel.py:4:6: error[unresolved-import] Cannot resolve imported module `joblib`
+ tests/polars/test_polars_parallel.py:4:6: error[unresolved-import] Cannot resolve imported module `joblib`: Did you mean `poplib`?

schemathesis (https://github.com/schemathesis/schemathesis)
- src/schemathesis/cli/commands/run/handlers/cassettes.py:14:8: error[unresolved-import] Cannot resolve imported module `harfile`
+ src/schemathesis/cli/commands/run/handlers/cassettes.py:14:8: error[unresolved-import] Cannot resolve imported module `harfile`: Did you mean `tarfile`?
- src/schemathesis/core/transport.py:14:12: error[unresolved-import] Cannot resolve imported module `httpx`
+ src/schemathesis/core/transport.py:14:12: error[unresolved-import] Cannot resolve imported module `httpx`: Did you mean `http`?
- src/schemathesis/core/transport.py:108:16: error[unresolved-import] Cannot resolve imported module `httpx`
+ src/schemathesis/core/transport.py:108:16: error[unresolved-import] Cannot resolve imported module `httpx`: Did you mean `http`?
- src/schemathesis/generation/case.py:23:12: error[unresolved-import] Cannot resolve imported module `httpx`
+ src/schemathesis/generation/case.py:23:12: error[unresolved-import] Cannot resolve imported module `httpx`: Did you mean `http`?
- src/schemathesis/graphql/loaders.py:17:10: error[unresolved-import] Cannot resolve imported module `graphql`
+ src/schemathesis/graphql/loaders.py:17:10: error[unresolved-import] Cannot resolve imported module `graphql`: Did you mean `graphlib`?
- src/schemathesis/graphql/loaders.py:176:12: error[unresolved-import] Cannot resolve imported module `graphql`
+ src/schemathesis/graphql/loaders.py:176:12: error[unresolved-import] Cannot resolve imported module `graphql`: Did you mean `graphlib`?
- src/schemathesis/graphql/loaders.py:254:12: error[unresolved-import] Cannot resolve imported module `graphql`
+ src/schemathesis/graphql/loaders.py:254:12: error[unresolved-import] Cannot resolve imported module `graphql`: Did you mean `graphlib`?
- src/schemathesis/graphql/loaders.py:261:12: error[unresolved-import] Cannot resolve imported module `graphql`
+ src/schemathesis/graphql/loaders.py:261:12: error[unresolved-import] Cannot resolve imported module `graphql`: Did you mean `graphlib`?
- src/schemathesis/schemas.py:41:12: error[unresolved-import] Cannot resolve imported module `httpx`
+ src/schemathesis/schemas.py:41:12: error[unresolved-import] Cannot resolve imported module `httpx`: Did you mean `http`?
- src/schemathesis/specs/graphql/nodes.py:6:10: error[unresolved-import] Cannot resolve imported module `graphql`
+ src/schemathesis/specs/graphql/nodes.py:6:10: error[unresolved-import] Cannot resolve imported module `graphql`: Did you mean `graphlib`?
- src/schemathesis/specs/graphql/scalars.py:9:12: error[unresolved-import] Cannot resolve imported module `graphql`
+ src/schemathesis/specs/graphql/scalars.py:9:12: error[unresolved-import] Cannot resolve imported module `graphql`: Did you mean `graphlib`?
- src/schemathesis/specs/graphql/schemas.py:50:12: error[unresolved-import] Cannot resolve imported module `graphql`
+ src/schemathesis/specs/graphql/schemas.py:50:12: error[unresolved-import] Cannot resolve imported module `graphql`: Did you mean `graphlib`?
- src/schemathesis/specs/graphql/schemas.py:150:16: error[unresolved-import] Cannot resolve imported module `graphql`
+ src/schemathesis/specs/graphql/schemas.py:150:16: error[unresolved-import] Cannot resolve imported module `graphql`: Did you mean `graphlib`?
- src/schemathesis/specs/graphql/schemas.py:349:12: error[unresolved-import] Cannot resolve imported module `graphql`
+ src/schemathesis/specs/graphql/schemas.py:349:12: error[unresolved-import] Cannot resolve imported module `graphql`: Did you mean `graphlib`?

urllib3 (https://github.com/urllib3/urllib3)
- dummyserver/asgi_proxy.py:6:8: error[unresolved-import] Cannot resolve imported module `httpx`
+ dummyserver/asgi_proxy.py:6:8: error[unresolved-import] Cannot resolve imported module `httpx`: Did you mean `http`?
- src/urllib3/contrib/emscripten/fetch.py:494:14: error[unresolved-import] Cannot resolve imported module `js`
+ src/urllib3/contrib/emscripten/fetch.py:494:14: error[unresolved-import] Cannot resolve imported module `js`: Did you mean `os`?
- test/contrib/emscripten/test_emscripten.py:339:16: error[unresolved-import] Cannot resolve imported module `js`
+ test/contrib/emscripten/test_emscripten.py:339:16: error[unresolved-import] Cannot resolve imported module `js`: Did you mean `os`?
- test/contrib/emscripten/test_emscripten.py:379:16: error[unresolved-import] Cannot resolve imported module `js`
+ test/contrib/emscripten/test_emscripten.py:379:16: error[unresolved-import] Cannot resolve imported module `js`: Did you mean `os`?

optuna (https://github.com/optuna/optuna)
- optuna/_gp/gp.py:36:12: error[unresolved-import] Cannot resolve imported module `scipy`
+ optuna/_gp/gp.py:36:12: error[unresolved-import] Cannot resolve imported module `scipy`: Did you mean `copy`?
- optuna/_gp/scipy_blas_thread_patch.py:13:12: error[unresolved-import] Cannot resolve imported module `scipy`
+ optuna/_gp/scipy_blas_thread_patch.py:13:12: error[unresolved-import] Cannot resolve imported module `scipy`: Did you mean `copy`?
- optuna/logging.py:14:8: error[unresolved-import] Cannot resolve imported module `colorlog`
+ optuna/logging.py:14:8: error[unresolved-import] Cannot resolve imported module `colorlog`: Did you mean `colorsys`?
- optuna/samplers/_cmaes.py:34:12: error[unresolved-import] Cannot resolve imported module `cmaes`
+ optuna/samplers/_cmaes.py:34:12: error[unresolved-import] Cannot resolve imported module `cmaes`: Did you mean `cmath`?
- optuna/storages/_grpc/auto_generated/api_pb2_grpc.py:3:8: error[unresolved-import] Cannot resolve imported module `grpc`
+ optuna/storages/_grpc/auto_generated/api_pb2_grpc.py:3:8: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- optuna/storages/_grpc/client.py:27:12: error[unresolved-import] Cannot resolve imported module `grpc`
+ optuna/storages/_grpc/client.py:27:12: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- optuna/storages/_grpc/server.py:13:12: error[unresolved-import] Cannot resolve imported module `grpc`
+ optuna/storages/_grpc/server.py:13:12: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- optuna/storages/_grpc/servicer.py:21:12: error[unresolved-import] Cannot resolve imported module `grpc`
+ optuna/storages/_grpc/servicer.py:21:12: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- optuna/testing/storages.py:26:12: error[unresolved-import] Cannot resolve imported module `grpc`
+ optuna/testing/storages.py:26:12: error[unresolved-import] Cannot resolve imported module `grpc`: Did you mean `grp`?
- optuna/visualization/matplotlib/_contour.py:21:12: error[unresolved-import] Cannot resolve imported module `scipy`
+ optuna/visualization/matplotlib/_contour.py:21:12: error[unresolved-import] Cannot resolve imported module `scipy`: Did you mean `copy`?
- tests/samplers_tests/test_cmaes.py:10:6: error[unresolved-import] Cannot resolve imported module `cmaes`
+ tests/samplers_tests/test_cmaes.py:10:6: error[unresolved-import] Cannot resolve imported module `cmaes`: Did you mean `cmath`?
- tests/samplers_tests/test_cmaes.py:11:6: error[unresolved-import] Cannot resolve imported module `cmaes`
+ tests/samplers_tests/test_cmaes.py:11:6: error[unresolved-import] Cannot resolve imported module `cmaes`: Did you mean `cmath`?
- tests/samplers_tests/test_cmaes.py:12:6: error[unresolved-import] Cannot resolve imported module `cmaes`
+ tests/samplers_tests/test_cmaes.py:12:6: error[unresolved-import] Cannot resolve imported module `cmaes`: Did you mean `cmath`?
- tutorial/20_recipes/012_artifact_tutorial.py:260:6: error[unresolved-import] Cannot resolve imported module `ase`
+ tutorial/20_recipes/012_artifact_tutorial.py:260:6: error[unresolved-import] Cannot resolve imported module `ase`: Did you mean `ast`?

dragonchain (https://github.com/dragonchain/dragonchain)
- dragonchain/job_processor/contract_job.py:27:8: error[unresolved-import] Cannot resolve imported module `docker`
+ dragonchain/job_processor/contract_job.py:27:8: error[unresolved-import] Cannot resolve imported module `docker`: Did you mean `socket`?
- dragonchain/lib/crypto.py:24:8: error[unresolved-import] Cannot resolve imported module `base58`
+ dragonchain/lib/crypto.py:24:8: error[unresolved-import] Cannot resolve imported module `base58`: Did you mean `base64`?
- dragonchain/lib/keys.py:23:8: error[unresolved-import] Cannot resolve imported module `base58`
+ dragonchain/lib/keys.py:23:8: error[unresolved-import] Cannot resolve imported module `base58`: Did you mean `base64`?

vision (https://github.com/pytorch/vision)
- docs/source/beta_status.py:1:6: error[unresolved-import] Cannot resolve imported module `docutils`
+ docs/source/beta_status.py:1:6: error[unresolved-import] Cannot resolve imported module `docutils`: Did you mean `distutils`?
- docs/source/conf.py:282:6: error[unresolved-import] Cannot resolve imported module `docutils`
+ docs/source/conf.py:282:6: error[unresolved-import] Cannot resolve imported module `docutils`: Did you mean `distutils`?
- references/depth/stereo/cascade_evaluation.py:9:6: error[unresolved-import] Cannot resolve imported module `train`
+ references/depth/stereo/cascade_evaluation.py:9:6: error[unresolved-import] Cannot resolve imported module `train`: Did

... (truncated 2540 lines) ...

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 16, 2026

Memory usage report

Memory usage unchanged ✅

@astral-sh-bot
Copy link

astral-sh-bot bot commented Feb 16, 2026

ecosystem-analyzer results

Lint rule Added Removed Changed
unresolved-import 0 0 1,314
invalid-assignment 0 0 1
Total 0 0 1,315

Full report with detailed diff (timing results)

@AlexWaygood AlexWaygood force-pushed the claude/merge-main-pr-4p0CV branch from 913bb0e to 93caf6e Compare February 16, 2026 14:43
@AlexWaygood AlexWaygood marked this pull request as ready for review February 16, 2026 14:49
Copy link
Contributor

@sharkdp sharkdp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can give suggestions here that are generally pretty good

I realize that this is not a fair sample, but in all of the 1300 ecosystem cases, all that this does is to add noise to the diagnostic message. Those are all cases where a dependency is not properly installed/available and the "Did you mean …" suggesting is only distracting from the actual solution.

Obviously, if you mistype a package name, this diagnostic can be helpful. But arguably, developers do this less and less. Even if they work without AI, they probably use autocompletion and/or auto-imports, where those "Did you mean …" suggestions can only be wrong/misleading.

So while this is certainly helpful for the subset of developers that still type out import pydatnic by hand (sic), I'm not completely convinced this is a net positive.

I'm not opposed to merging this, but maybe we can wait for a third opinion.

@AlexWaygood
Copy link
Member Author

I realize that this is not a fair sample, but in all of the 1300 ecosystem cases, all that this does is to add noise to the diagnostic message. Those are all cases where a dependency is not properly installed/available and the "Did you mean …" suggesting is only distracting from the actual solution.

Yes, to be clear:

  • mypy_primer projects are far more likely than "real use cases" to have dependencies missing
  • committed code in general is far less likely to have actual typos in it, while typos do come up pretty regularly while you're working on code locally (especially if you don't use a fancy IDE with autocomplete).

I'm happy to close this PR if others feel similarly -- but I think your points also serve equally well as arguments against the existing "Did you mean?" suggestions we have for other diagnostics. Our JSON schema should mean that users get autocomplete suggestions for rule names (and AI agents should be able to parse the schema as well), and we'll be adding autocomplete for TypedDict keys at some point (astral-sh/ty#2189)

@carljm
Copy link
Contributor

carljm commented Feb 17, 2026

I don't have strong opinions here. I feel like there are two questions:

  1. Given the overall decline in hand-written code (and the prevalence of auto-complete even when code is hand-written), are "do you mean?" suggestions a feature that we should prioritize working on, in general, relative to other things we could be doing? IMO the answer here is clearly "no".
  2. Is merging this particular PR a net positive for our users? TBH I'm not entirely sure, and don't really know how to get a clear answer. We get a lot of reports of unresolved imports, and they are almost always about our environment/path handling. So for any user running into that sort of issue, offering them a "did you mean" about some similarly-named stdlib module is really not helpful. But we really don't have any data at all on how often people mis-type standard library module names in local development -- we would never see reports on those cases.

Point 1 applies equally to all our "do you mean" suggestions, but point 2 does not. If the user types a rule name, it is 100% clear that they intended to type a rule name. If they type a bad TypedDict key, it is possible that they are trying to use a TypedDict in a looser way, but it is very likely that they meant to type a valid TypedDict key.

When there is an unresolved import, in contrast, I would say we have fairly low confidence that what they really meant to do is import a similarly-named stdlib module.

So on the whole, I think I would come down weakly on the side of not merging this.

@AlexWaygood
Copy link
Member Author

AlexWaygood commented Feb 17, 2026

Hmm -- while I absolutely agree that the amount of handwritten code is shrinking fast, I do think there will still be quite a bit of handwritten code for some time to come, so I don't think we should give up on usability improvements on that basis. I'm not sure I even agree that usability improvements relative to other type checkers should be less of a priority than they were before. I think having superior UX to other type checkers will continue to be a valuable asset for a while yet.

However, I agree with your point that we have ~no signal on how many users actually type out stdlib import typos locally. And I also agree that there's a fairly good chance that we'll give an incorrect suggestion given that third-party modules are not included in the list of available modules we feed into the Levenshtein algorithm. Given that, there's a good chance that this feature will just be adding noise to lots of diagnostics. So those are pretty good reasons to reject this PR.

Thanks both for the reviews!

@AlexWaygood AlexWaygood deleted the claude/merge-main-pr-4p0CV branch February 17, 2026 19:10
@carljm
Copy link
Contributor

carljm commented Feb 17, 2026

To be clear, I don't intend for point 1 to apply more broadly to all "UX" considerations! For example, I think good detailed diagnostic messages are very useful to both humans and LLMs, and useful to humans regardless of their IDE. I think it's a more nuanced question of which UX features we should prioritize. And it's not even intended to say that "did you mean" suggestions are not useful! Just that we have a lot of high-priority things to do, and I think there are good reasons to think maybe that particular UX feature shouldn't be at the top of our list.

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

Labels

diagnostics Related to reporting of diagnostics. ecosystem-analyzer ty Multi-file analysis & type inference

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants