local stubs folder makes mypy think an unrelated module.__init__
duplicates module
#18775
Labels
bug
mypy got something wrong
module.__init__
duplicates module
#18775
Bug Report
Having a local stubs folder makes mypy think an unrelated
module.__init__
duplicatesmodule
.Deleting the
__init__.pyi
in the local stubs solves the issue, but will cause many more issues where mypy thinks the package can't be imported.This happens with or without
explicit_package_bases
.To Reproduce
MRE: reproduction.zip
Expected Behavior
No error or some way to work around this issue
Actual Behavior
Your Environment
python3.13 -m mypy .
mypy.ini
(and other config files): (see MRE)The text was updated successfully, but these errors were encountered: