diff --git a/docs/usage/type-conversions.md b/docs/usage/type-conversions.md index 8f9aeb9fc..accc6e6a6 100644 --- a/docs/usage/type-conversions.md +++ b/docs/usage/type-conversions.md @@ -619,6 +619,8 @@ directly (i.e., `jsfunc(obj)`) or as `jsfunc(create_proxy(obj))`. `create_proxy` is particularly helpful with `addEventListener`: ```py +import pyodide + def callback(): print("clicked!") proxy = pyodide.create_proxy(callback)