You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git clone https://github.com/ethanhs/stub-package
cd stub-package
mypy ./typedpkg-stubs
typedpkg-stubs is not a valid Python package name
Invoking mypy with -p option works
mypy -p typedpkg-stubs
Success: no issues found in 2 source files
but the former behavior is rather confusing.
Expected behavior:
mypy should recognize *-stubs paths as roots of stub-only packages.
According to PEP 561 stub-only package:
However if we invoke mypy on such package providing only path it fails with
This can be reproduced on the example package:
Invoking
mypy
with-p
option worksbut the former behavior is rather confusing.
Expected behavior:
*-stubs
paths as roots of stub-only packages.Tested with:
The text was updated successfully, but these errors were encountered: