def METHOD_NAME(self, chars_len: int, width: int) -> Text:
    rule_text = Text(self.characters * ((width // chars_len) + 1), self.style)
    rule_text.truncate(width)
    rule_text.plain = set_cell_size(rule_text.plain, width)
    return rule_text