bytecodealliance / componentize-py

Apache License 2.0
130 stars 13 forks source link

List errors which might be raised in function docstrings #53

Closed dicej closed 6 months ago

dicej commented 6 months ago

Python does not currently have a way to represent the types of errors/exceptions which might be raised by a function in a typed function signature, so the next best thing is to list them in the docstring (e.g. following any docs derived from WIT doc comments).