summaryrefslogtreecommitdiff
path: root/cmd2/ansi.py
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2020-04-20 22:36:01 -0600
committerkotfu <kotfu@kotfu.net>2020-04-20 22:36:01 -0600
commit9f35d2fe13fe26777d90d164acd311279201123e (patch)
tree1b9c049474b35d48cc4eebd715fc351ddd3251fd /cmd2/ansi.py
parentbbaa674c40ea3996bd66a9f91eac949d74a79bac (diff)
parente7a0be4df68346ac15626c20c4a19c8fabb1bf49 (diff)
downloadcmd2-git-dashes.tar.gz
Merge branch 'master' into dashesdashes
Diffstat (limited to 'cmd2/ansi.py')
-rw-r--r--cmd2/ansi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/ansi.py b/cmd2/ansi.py
index ceb135ec..a6c09413 100644
--- a/cmd2/ansi.py
+++ b/cmd2/ansi.py
@@ -196,7 +196,7 @@ def fg_lookup(fg_name: Union[str, fg]) -> str:
:param fg_name: foreground color name or enum to look up ANSI escape code(s) for
:return: ANSI escape code(s) associated with this color
- :raises ValueError: if the color cannot be found
+ :raises: ValueError: if the color cannot be found
"""
if isinstance(fg_name, fg):
return fg_name.value
@@ -214,7 +214,7 @@ def bg_lookup(bg_name: Union[str, bg]) -> str:
:param bg_name: background color name or enum to look up ANSI escape code(s) for
:return: ANSI escape code(s) associated with this color
- :raises ValueError: if the color cannot be found
+ :raises: ValueError: if the color cannot be found
"""
if isinstance(bg_name, bg):
return bg_name.value