-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
append
Raises
line to function docstrings as appropriate
If the WIT representation of a function returns `result<A,B>`, then we generate a Python function that returns `A` and raises `Err(B)`. Since there's currently no way of representing the `Err(B)` part in the function's signature, we do the next best thing: put it in the docstring. Fixes #53 Signed-off-by: Joel Dice <joel.dice@fermyon.com>
- Loading branch information
Showing
2 changed files
with
47 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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