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

Method _create_cb_wrapper

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

Source from the content-addressed store, hash-verified

478
479 @staticmethod
480 def _create_cb_wrapper(callback, /, *args, **kwds):
481 def _exit_wrapper(exc_type, exc, tb):
482 callback(*args, **kwds)
483 return _exit_wrapper
484
485 def __init__(self):
486 self._exit_callbacks = deque()

Callers 1

callbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected