Description
This is more of a question than an issue.
I'm starting on using mypy to typecheck a package in which I have stub files in a dedicated ./stubs
folder. However even when I pass this path into the mypy_path
option in mypy.ini
these don't seem to be detected and I
The same issue appears to be reported here #4933 which includes a minimal example. Tweaking the mypy.ini
file and making the ./stubs/mypy
folder into a package by adding __init__.pyi
files was suggested as a solution. I forked the package and implemented this suggestion (see https://github.com/MarkCBell/mypyx) however running mypy tests/test-main.py
I still see the same error messages:
mypy/main.py:1: error: Function is missing a type annotation
mypy/main.py:5: error: Function is missing a type annotation
mypy/main.py:9: error: Function is missing a type annotation
As before, if I move ./stubs/mypy/main.pyi
to ./mypy/
then these errors go away.
I am using mypy 0.620 installed under Python 3.6.5 by pip 18.0
Can someone please help me in knowing where am I exactly going wrong?