code: def unwrap(self) -> T:
          
          if self._is_ok:
              return cast(T, self._val)
          raise ValueError(self._val)
docs: Returns the success value in the :class:`Result`.
  
          Returns:
              The success value in the :class:`Result`.
  
          Raises:
              ``ValueError`` with the message provided by the error value
               if the :class:`Result` is a :meth:`Result.Err` value.
  
          Examples:
              >>> Ok(1).unwrap()
              1
              >>> try:
              ...     Err(1).unwrap()
              ... except ValueError as e:
              ...     print(e)
              1