docs: def _push_cm_exit(self, cm, cm_exit):
          """Helper to correctly register callbacks to __exit__ methods."""
          _exit_wrapper = self._create_exit_wrapper(cm, cm_exit)
          self._push_exit_callback(_exit_wrapper, True)