(forms)
:param forms: List of forms (either 1 or 2)
    :return: tuple with main form first and deprecated form second
:param forms: List of forms (either 1 or 2)
    :return: tuple with main form first and deprecated form second
: param forms : List of forms ( either 1 or 2 ) : return : tuple with main form first and deprecated form second
def _list_to_processed_forms_tuple(forms):
    """
    :param forms: List of forms (either 1 or 2)
    :return: tuple with main form first and deprecated form second
    """
    if len(forms) == 1:
        return ProcessedForms(forms[0], None)
    else:
        assert len(forms) == 2
        return ProcessedForms(*sorted(forms, key=lambda form: form.is_deprecated))
def _list_to_processed_forms_tuple ( forms ) : if len ( forms ) == 1 : return ProcessedForms ( forms [ 0 ] , None ) else : assert len ( forms ) == 2 return ProcessedForms ( * sorted ( forms , key = lambda form : form . is_deprecated ) )