I have a small codebase to back up Dropbox Business files, and am trying to use mypy to help me use the rather unpythonic Dropbox Python SDK.
I have installed mypy, and it is working.
However, mypy raises a warning for the following line:
import dropbox
The warning is "Cannot find module named 'dropbox'".
It seems that Dropbox's SDK generator, called Stone, should generate compatible stub files (which in this case would be called dropbox.pyi
).
But there is no dropbox.pyi
in site-packages/dropbox
, where mypy would look for it.
How can I get type checking for the dropbox
package working?
Thanks in advance.
Versions:
- Python 3.6 64-bit (Anaconda)
- OS: Windows 10 Pro 64-bit
- mypy 0.521
- dropbox SDK 8.0.0