summaryrefslogtreecommitdiffstats
path: root/typing-stubs/colored/colored.pyi
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:47 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-25 02:59:47 +0000
commit03a1bd448be99d872d663a57a1cf4492882e090d (patch)
treec3d23691aa4dfdba89856bde05707a9a8e16abab /typing-stubs/colored/colored.pyi
parentAdding upstream version 0.1.28. (diff)
downloaddebputy-03a1bd448be99d872d663a57a1cf4492882e090d.tar.xz
debputy-03a1bd448be99d872d663a57a1cf4492882e090d.zip
Adding upstream version 0.1.29.upstream/0.1.29
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'typing-stubs/colored/colored.pyi')
-rw-r--r--typing-stubs/colored/colored.pyi30
1 files changed, 30 insertions, 0 deletions
diff --git a/typing-stubs/colored/colored.pyi b/typing-stubs/colored/colored.pyi
new file mode 100644
index 0000000..8a463ac
--- /dev/null
+++ b/typing-stubs/colored/colored.pyi
@@ -0,0 +1,30 @@
+from .hexadecimal import Hex as Hex
+from .library import Library as Library
+from .utilities import Utilities as Utilities
+from _typeshed import Incomplete
+from typing import Any
+
+TTY_AWARE: bool
+IS_TTY: Incomplete
+
+class Colored:
+ def __init__(self, name: Any) -> None: ...
+ def attribute(self, line_color: str = '') -> str: ...
+ def foreground(self) -> str: ...
+ def background(self) -> str: ...
+ @staticmethod
+ def enable_windows_terminal_mode() -> Any: ...
+ @staticmethod
+ def enabled() -> bool: ...
+
+def style(name: int | str, color: str | int = '') -> str: ...
+def fore(name: int | str) -> str: ...
+def back(name: int | str) -> str: ...
+def fore_rgb(r: int | str, g: int | str, b: int | str) -> str: ...
+def back_rgb(r: int | str, g: int | str, b: int | str) -> str: ...
+def attr(name: int | str) -> str: ...
+def fg(name: int | str) -> str: ...
+def bg(name: int | str) -> str: ...
+def stylize(text: str, formatting: int | str, reset: bool = True) -> str: ...
+def stylize_interactive(text: str, formatting: str, reset: bool = True) -> str: ...
+def set_tty_aware(awareness: bool = True) -> None: ...