def max_input_length(self) -> int:
        """
        Returns maximum input length for TranslatorInput objects passed to translate()
        """
        if self.source_with_eos:
            return self._max_input_length - C.SPACE_FOR_XOS
        else:
            return self._max_input_length
def max_input_length ( self ) -> int : if self . source_with_eos : return self . _max_input_length - C . SPACE_FOR_XOS else : return self . _max_input_length
Returns maximum input length for TranslatorInput objects passed to translate()