summaryrefslogtreecommitdiff
path: root/cmd2
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2019-11-27 10:52:00 -0700
committerkotfu <kotfu@kotfu.net>2019-11-27 10:52:00 -0700
commit633074ea4d7acb10e76665dd7c7080b570149e9c (patch)
tree22ac8edc72dc2573b1fce96c814d8f5be2304469 /cmd2
parent5058d7ad4e6ce308b0e923838f6a0f03aedfe150 (diff)
downloadcmd2-git-633074ea4d7acb10e76665dd7c7080b570149e9c.tar.gz
Fix flake8 error
Diffstat (limited to 'cmd2')
-rw-r--r--cmd2/ansi.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py
index 32d01399..db828af4 100644
--- a/cmd2/ansi.py
+++ b/cmd2/ansi.py
@@ -185,8 +185,13 @@ def style(text: Any, *, fg: str = '', bg: str = '', bold: bool = False, underlin
# These can be altered to suit an application's needs and only need to be a
# function with the following structure: func(str) -> str
style_success = functools.partial(style, fg='green', bold=True)
+"""Partial function supplying arguments to style() to generate bold green text"""
+
style_warning = functools.partial(style, fg='bright_yellow')
+"""Partial function supplying arguments to ansi.style() to generate yellow text"""
+
style_error = functools.partial(style, fg='bright_red')
+"""Partial function supplying arguments to ansi.style() to generate bright red text"""
def async_alert_str(*, terminal_columns: int, prompt: str, line: str, cursor_offset: int, alert_msg: str) -> str: