(self)
Check whether the context manger has caught any exceptions.

        Raises:
            :exc:`ImportError`:
                If any exception was caught from the caught exception.
Check whether the context manger has caught any exceptions.
Check whether the context manger has caught any exceptions .
def check(self) -> None:
        """Check whether the context manger has caught any exceptions.

        Raises:
            :exc:`ImportError`:
                If any exception was caught from the caught exception.

        """
        if self._deferred is not None:
            exc_value, message = self._deferred
            raise ImportError(message) from exc_value
def check ( self ) -> None : if self . _deferred is not None : exc_value , message = self . _deferred raise ImportError ( message ) from exc_value