def is_terminal(self) -> bool:
        """True if the response contained an untagged ``BYE`` response
        indicating that the session should be terminated.

        """
        for resp in self._untagged:
            if resp.is_terminal:
                return True
        return False
def is_terminal ( self ) -> bool : for resp in self . _untagged : if resp . is_terminal : return True return False
True if the response contained an untagged ``BYE`` response
        indicating that the session should be terminated.