def clip_text(text: str, max_length: int = 6) -> str: # return text[:max_length] + ".." if len(text) > max_length else text return text