-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
documentation/python: initial support for generating Python stubs.
So far just aiming to produce valid code, skipping docstrings altogether. Thus -- generating one file per module, and putting code that closely resembles what's in the documentation, but in a way that is actual Python, together with importing dependency modules. To support incomplete or broken annotations, the tyoe_relative template variable got specialized to type_quoted. In certain cases, such as base classes for enums or (data / default) values, it's left as *_relative, as in those cases no quoting is necessary. What isn't handled so far is quoting forward references for types that were not yet listed in the output.
- Loading branch information
Showing
57 changed files
with
2,862 additions
and
251 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
Oops, something went wrong.