Skip to content

Commit 67c7492

Browse files
committed
Updating docstrings for terminal_colours.py
1 parent ac725d8 commit 67c7492

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

domdf_python_tools/terminal_colours.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ class Colour(str):
9696
"""
9797
An ANSI escape sequence representing a colour.
9898
99+
The colour can be used as a context manager, a string, or a function.
100+
99101
:param style: Escape sequence representing the style.
100102
:type style: str
101103
:param stack: The stack to place the escape sequence on.
@@ -220,6 +222,8 @@ class AnsiFore(AnsiCodes):
220222
"""
221223
ANSI Colour Codes for foreground colour.
222224
225+
The colours can be used as a context manager, a string, or a function.
226+
223227
Valid values are:
224228
225229
* BLACK
@@ -269,6 +273,8 @@ class AnsiBack(AnsiCodes):
269273
"""
270274
ANSI Colour Codes for background colour.
271275
276+
The colours can be used as a context manager, a string, or a function.
277+
272278
Valid values are:
273279
274280
* BLACK

0 commit comments

Comments
 (0)