The Py2JsResult type is incorrect, it should actually be `any`. Strictly
speaking, `any` except it won't be `null`. But I am not sure
that "anything except for null" provides extra value of "any" .

For backwards compatibility, we still `export type Py2JsResult = any;`
Remove Py2JsResult. The Py2JsResult type is incorrect, it should actually be `any`. Strictly
speaking, `any` except it won't be `null`. But I am not sure
that "anything except for null" provides extra value of "any" .

For backwards compatibility, we still `export type Py2JsResult = any;`
from pyodide_build.testing import run_in_pyodide


@run_in_pyodide(standalone=True, packages=["jedi"])
def test_jedi():
    import jedi

    script = jedi.Script("import json\njson.lo", path="example.py")
    completions = script.complete(2, len("json.lo"))
    assert [el.name for el in completions] == ["load", "loads"]

from pyodide_build.testing import run_in_pyodide


@run_in_pyodide(standalone=True, packages=["jedi"])
def test_jedi():
    import jedi

    script = jedi.Script("import json\njson.lo", path="example.py")
    completions = script.complete(2, len("json.lo"))
    assert [el.name for el in completions] == ["load", "loads"]
