MCPcopy Index your code
hub / github.com/RustPython/RustPython / _create_async_cb_wrapper

Method _create_async_cb_wrapper

Lib/contextlib.py:649–652  ·  view source on GitHub ↗
(callback, /, *args, **kwds)

Source from the content-addressed store, hash-verified

647
648 @staticmethod
649 def _create_async_cb_wrapper(callback, /, *args, **kwds):
650 async def _exit_wrapper(exc_type, exc, tb):
651 await callback(*args, **kwds)
652 return _exit_wrapper
653
654 async def enter_async_context(self, cm):
655 """Enters the supplied async context manager.

Callers 1

push_async_callbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected