Take this directory tree:
/path/to/src
└───namespace
└───package
│ __init__.py
│
└───__pycache__
__init__.cpython-35.pyc
And this MYPYPATH:
> $env:MYPYPATH
/path/to/src
then running mypy -p namespace.package gives:
> mypy -p namespace.package
Can't find package 'namespace.package'
However, mypy works fine when you add an empty __init__.py into namepace (turning it into a regular package).
Take this directory tree:
And this MYPYPATH:
then running
mypy -p namespace.packagegives:However, mypy works fine when you add an empty
__init__.pyintonamepace(turning it into a regular package).