Bug Report
Running stubtest --mypy-config-file pyproject.toml foo yields foo failed to import, ModuleNotFoundError: No module named 'foo'
To Reproduce
- Clone https://github.com/rayzchen/stubtest-bug
- Run
stubtest --mypy-config-file pyproject.toml foo
Expected Behavior
Stubtest finds the foo module
Actual Behavior
error: foo failed to import, ModuleNotFoundError: No module named 'foo'
Stub: in file stubs\foo\__init__.pyi:1
MypyFile:1(
stubs/foo/__init__.pyi)
Runtime:
MISSING
error: foo.bar failed to import, ModuleNotFoundError: No module named 'foo'
Stub: in file stubs\foo\bar\__init__.pyi:1
MypyFile:1(
stubs/foo/bar/__init__.pyi)
Runtime:
MISSING
error: foo.bar.baz failed to import, ModuleNotFoundError: No module named 'foo'
Stub: in file stubs\foo\bar\baz.pyi:1
MypyFile:1(
stubs/foo/bar/baz.pyi)
Runtime:
MISSING
Found 3 errors (checked 3 modules)
Your Environment
- Mypy version used: 1.3.0
- Mypy command-line flags: N/A (used stubtest)
- Mypy configuration options from
mypy.ini (and other config files): mypy_path = "stubs/"
- Python version used: 3.10.6
Bug Report
Running
stubtest --mypy-config-file pyproject.toml fooyieldsfoo failed to import, ModuleNotFoundError: No module named 'foo'To Reproduce
stubtest --mypy-config-file pyproject.toml fooExpected Behavior
Stubtest finds the
foomoduleActual Behavior
Your Environment
mypy.ini(and other config files):mypy_path = "stubs/"