Open jolaf opened 2 months ago
Perhaps the wording "module or parent package" would be clearer?
If parent package is untyped, then report should name the parent package, not the submodule.
Also, from my point of view, the most important thing to report is that submodule does not exist.
Reporting that parent package is not typed is much less important.
The behaviour makes sense in the context of extension modules, where currently "extension module missing a type stub" and "missing third party pure Python module" are indistinguishable to mypy.
Mypy could extend its import resolution to find extension modules, though
Bug Report
When untyped module exists but submodule does not,
mypy
reports that submodule is installed.To Reproduce
Expected Behavior Error in line 2 should be saying that
fabric.not_exists
does not exist.Actual Behavior Error in line 2 says that
fabric.not_exists
is installed, which it not true and misleading.Your Environment