MCPcopy
hub / github.com/pyodide/pyodide / to_js

Function to_js

src/py/_pyodide/_core_docs.py:1437–1447  ·  view source on GitHub ↗
(
    obj: list[Any] | tuple[Any],
    /,
    *,
    depth: int = -1,
    pyproxies: JsProxy | None = None,
    create_pyproxies: bool = True,
    dict_converter: Callable[[Iterable[JsArray[Any]]], JsProxy] | None = None,
    default_converter: ToJsConverter | None = None,
    eager_converter: ToJsConverter | None = None,
)

Source from the content-addressed store, hash-verified

1435
1436@overload
1437def to_js(
1438 obj: list[Any] | tuple[Any],
1439 /,
1440 *,
1441 depth: int = -1,
1442 pyproxies: JsProxy | None = None,
1443 create_pyproxies: bool = True,
1444 dict_converter: Callable[[Iterable[JsArray[Any]]], JsProxy] | None = None,
1445 default_converter: ToJsConverter | None = None,
1446 eager_converter: ToJsConverter | None = None,
1447) -> JsArray[Any]: ...
1448
1449
1450@overload

Callers 15

test_zerod_buffersFunction · 0.85
test_pyproxy_mixins1Function · 0.85
test_pyproxy_mixins31Function · 0.85
test_pyproxy_mixins41Function · 0.85
test_pyproxy_mixins5Function · 0.85
fFunction · 0.85
test_pyproxy_of_list_mapFunction · 0.85

Calls

no outgoing calls

Tested by 15

test_zerod_buffersFunction · 0.68
test_pyproxy_mixins1Function · 0.68
test_pyproxy_mixins31Function · 0.68
test_pyproxy_mixins41Function · 0.68
test_pyproxy_mixins5Function · 0.68
fFunction · 0.68
test_pyproxy_of_list_mapFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…