-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert the lazy importer to a "pyi" reader
- Create an `__init__.pyi` which declares all of the imports and the `__all__` tuple for the top-level package. Tests confirm that `mypy` will respect this file. - Expand the implementation of lazy imports to handle more details and to parse the data from `__init__.pyi`. - The lazy importer implementation now provides `__all__` copied (at runtime) out of the `__init__.pyi`, and builds implementations for the `__init__.py`.
- Loading branch information
Showing
7 changed files
with
443 additions
and
324 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
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.