@classmethod
    def string_contains_colors(cls, colored_string):
        return len(cls.ANSI_REG.findall(colored_string)) > 0
Checks to see if a string contains colors.
dataset/ETHPy150Open tomerfiliba/plumbum/plumbum/colorlib/styles.py/Style.string_contains_colors