.pyi
file not detected for single .py
file in site-packages
#15817
Labels
bug
mypy got something wrong
.pyi
file not detected for single .py
file in site-packages
#15817
Bug Report
A
.pyi
file next to a top-level.py
file insite-packages
is not being picked up.P.S.: Docs are also inconsistent on naming of stubs-only packages. https://mypy.readthedocs.io/en/stable/installed_packages.html#installed-packages says
types-<name>
and then later says<name>-stubs
.To Reproduce
microvenv
microvenv.pyi
file insite-packages
next tomicrovenv.py
microvenv
Example
microvenv.pyi
:Expected Behavior
No error about missing type stubs or
py.typed
.Actual Behavior
I verified the
.pyi
file worked by copying to the same directory as the code being analyzed.Your Environment
mypy.ini
(and other config files): NoneThe text was updated successfully, but these errors were encountered: