|
|
|
|
|
by StavrosK
3971 days ago
|
|
I did that already, I just have to find some time to do the conversion. The maintainer was kind enough to assist. How do you use MyPy? I'm particularly worried about two things: 1) If I'm building a library, I can't have MyPy as a requirement, but would still like to use it for the types checks. Is there a way to omit the import when distributing your library? 2) Can it only check parts of an application? Maybe I have a big Django app and don't want it to static-check Django and all the other imports every time, for example. |
|
1. No, afaik there's no way to omit the import. Sadly there's little in the way of macros or preprocessors in the python world at this point.
2. I'm fairly sure there's ways to use module stubs, but all my mypy work has dealt with the stdlib which presents no issue.