-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use modular typeshed (unbundle third-party package stubs) (#9973)
Support the new structure of typeshed (python/typeshed#2491) and only bundle stdlib stubs with mypy. Most stubs for third-party packages now need to be installed using pip (for example, `pip install types-requests`). Add stubs for `typing_extensions` and `mypy_extensions` as mypy dependencies, since these are needed for basic operation. Suggest a pip command to run if we encounter known missing stubs. Add `--install-types` option that installs all missing stub packages. This can be used as `mypy --install-types` to install missing stub packages from the previous mypy run (no need to provide a full mypy command line). This also replaces the typeshed git submodule with a partial copy of the typeshed that only includes stdlib stubs. Add a script to sync stubs from typeshed (`misc/sync-typeshed.py`). This is still incomplete since typeshed hasn't actually migrated to the new structure yet. Work towards #9971.
- Loading branch information
Showing
711 changed files
with
53,687 additions
and
509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ build/ | |
__pycache__ | ||
*.py[cod] | ||
*~ | ||
@* | ||
/build | ||
/env*/ | ||
docs/build/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.