def update_tag_implications(tag: model.Tag, relations: List[str]) -> None: assert tag if _check_name_intersection(_get_names(tag), relations, False): raise InvalidTagRelationError("Tag cannot imply itself.") tag.implications = get_tags_by_names(relations)
def update_tag_implications(tag: model.Tag, relations: List[str]) -> None: assert tag if _check_name_intersection(_get_names(tag), relations, False): raise InvalidTagRelationError('Tag cannot imply itself.') tag.implications = get_tags_by_names(relations)
def update_tag_implications(tag: model.Tag, relations: List[str]) -> None: assert tag if _check_name_intersection(_get_names(tag), relations, False): raise InvalidTagRelationError('태그는 자기 자신을 포함 태그로 지정할 수 없습니다.') tag.implications = get_tags_by_names(relations)