def get_result(self) -> Union['WhisperResult', None]:
        """
        Return outer instance of :class:`stable_whisper.result.WhisperResult` that ``self`` is a part of.
        """
        warnings.warn('``.get_result()`` will be removed in future versions. Use ``.result`` instead.',
                      stacklevel=2)
        return self.result

        Return outer instance of :class:`stable_whisper.result.WhisperResult` that ``self`` is a part of.
        
stable_whisper/result.py