Closed
Description
I started working on a pull request for this, so I'm opening this issue to discuss details and track progress.
The idea is to
- Add typeshed (http://github.com/python/typeshed) as a submodule to mypy, e.g. as "./typeshed/" or "./stubs/", and then to tweak default_lib_path in mypy/build.py to work with the typeshed directory structure. (Which is a bit more fine-grained than the one in mypy. It's documented at
https://github.com/python/typeshed/blob/master/README.md) - Merge the stubs of typeshed and mypy. Both have things the other doesn't have - typeshed has a lot of stubs from C extensions, including obscure things like _sre, strop, syslog and cmath, whereas mypy already also has stubs for the .py part of the standard library. (But a first step might be to make a branch in typeshed that's essentially a copy of mypy/stubs/ just to make sure the submodule+loading logic works.)