summaryrefslogtreecommitdiffstats
path: root/typing-stubs/colored/utilities.pyi
blob: 97a11577083e41d941289e3b850ec41a4829b61e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
from .exceptions import InvalidColor as InvalidColor, InvalidControl as InvalidControl, InvalidHexColor as InvalidHexColor, InvalidStyle as InvalidStyle
from .library import Library as Library

class Utilities:
    RGB_MAXIMUM_COLOR: int
    colorterm: str
    def __init__(self) -> None: ...
    def is_color_exist(self, name: str) -> bool: ...
    def is_style_exist(self, name: str) -> bool: ...
    def is_control_exist(self, name: str) -> bool: ...
    def convert_percentages(self, percent: str | int) -> int | str: ...
    def set_colorterm(self, colorterm: str = ''): ...
    def is_percentage(self, numbers: tuple) -> list: ...