DOC Fix type-conversions.md example (#2062)

Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
This commit is contained in:
Oran C 2022-01-03 14:55:16 -07:00 committed by GitHub
parent 334be2e0c7
commit d5dc6559ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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)