def _on_timeout(self, info: str = None) -> None:
        """Timeout callback of _HTTPConnection instance.

        Raise a `HTTPTimeoutError` when a timeout occurs.

        :info string key: More detailed timeout information.
        """
        self._timeout = None
        error_message = "Timeout {0}".format(info) if info else "Timeout"
        if self.final_callback is not None:
            self._handle_exception(
                HTTPTimeoutError, HTTPTimeoutError(error_message), None
            )
def _on_timeout ( self , info : str = None ) -> None : self . _timeout = None error_message = "Timeout {0}" . format ( info ) if info else "Timeout" if self . final_callback is not None : self . _handle_exception ( HTTPTimeoutError , HTTPTimeoutError ( error_message ) , None )
Timeout callback of _HTTPConnection instance.

        Raise a `HTTPTimeoutError` when a timeout occurs.

        :info string key: More detailed timeout information.