MCPcopy Create free account
hub / github.com/ipython/ipython / loc

Function loc

IPython/core/async_helpers.py:48–53  ·  view source on GitHub ↗

We need the dummy no-op async def to protect from trio's internal. See https://github.com/python-trio/trio/issues/89

(coro)

Source from the content-addressed store, hash-verified

46 import trio
47
48 async def loc(coro):
49 """
50 We need the dummy no-op async def to protect from
51 trio's internal. See https://github.com/python-trio/trio/issues/89
52 """
53 return await coro
54
55 return trio.run(loc, async_fn)
56

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected