textual-paint/typings/stransi/attribute.pyi
2023-05-09 16:58:25 -04:00

43 lines
934 B
Python

"""
This type stub file was generated by pyright.
"""
from dataclasses import dataclass
from enum import Enum
from .instruction import Instruction
"""ANSI text style attributes."""
class Attribute(Enum):
"""An ANSI text style attribute."""
NORMAL = ...
BOLD = ...
DIM = ...
NEITHER_BOLD_NOR_DIM = ...
ITALIC = ...
NOT_ITALIC = ...
UNDERLINE = ...
NOT_UNDERLINE = ...
BLINK = ...
NOT_BLINK = ...
REVERSE = ...
NOT_REVERSE = ...
HIDDEN = ...
NOT_HIDDEN = ...
def is_on(self): # -> bool:
"""Return True if this attribute actually "turns on" an attribute."""
...
def is_off(self): # -> Any:
"""Return True if this attribute actually "turns off" (resets) an attribute."""
...
@dataclass
class SetAttribute(Instruction[Attribute]):
"""Instruction to set an ANSI text style attribute."""
attribute: Attribute
...