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

Method _create_exit_wrapper

Lib/contextlib.py:476–477  ·  view source on GitHub ↗
(cm, cm_exit)

Source from the content-addressed store, hash-verified

474
475 @staticmethod
476 def _create_exit_wrapper(cm, cm_exit):
477 return MethodType(cm_exit, cm)
478
479 @staticmethod
480 def _create_cb_wrapper(callback, /, *args, **kwds):

Callers 1

_push_cm_exitMethod · 0.95

Calls 1

MethodTypeFunction · 0.90

Tested by

no test coverage detected