Open midlik opened 10 months ago
By no means a fix but python -m mypy --ignore-missing-imports example.py
deals with this.
From what I saw, py.typed
should be part of the project if it's typed. It can be empty if types are part of the codebase, as is the case here. Anyway, this isn't good enough to get rid of the error but certainly good to have regardless. Might do some more digging if I find the time. Not sure how big of an issue this is. It happens for dependencies as well, which is the reason for ignore_missing_imports = True
in our mypy.ini
.
Hi, I'm creating example for using the
molviewspec
Python package. All works fine and I'm getting correct code suggestions and types in IDE. But when I run mypy, it says types formolviewspec
are missing.@JonStargaryen could you have a look at this?