Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Distribute in code type information #1816

Closed
tharvik opened this issue Jul 7, 2016 · 1 comment
Closed

Distribute in code type information #1816

tharvik opened this issue Jul 7, 2016 · 1 comment

Comments

@tharvik
Copy link
Contributor

tharvik commented Jul 7, 2016

So, section "Storing and distributing stub files" in PEP 484 gives a way to distribute *.pyi. But how to package a project such that it's in-code type annotations are taken in consideration by mypy? Currently, I'm just installing the *.py directly, which keep the type annotations.

Setting MYPYPATH to /usr/lib/python3.4/site-packages will make it fail, so I guess there should be a fallback if a module is not found, to look for it directly in the site-packages. Or is there a flag I missed?

@JukkaL
Copy link
Collaborator

JukkaL commented Jul 7, 2016

We've discussed this in #1190. Is it okay to move further discussion there? I'm going to write a follow-up comment with some ideas there.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants