summaryrefslogtreecommitdiff
path: root/cmd2/ansi.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2020-04-20 21:56:19 -0400
committerTodd Leonhardt <todd.leonhardt@gmail.com>2020-04-20 21:56:19 -0400
commit0ddf61a2b8640d38b182be9100f35350cb2c96f8 (patch)
tree24d36dae7d573708b226c7808368205076811147 /cmd2/ansi.py
parente23e010f013b7384cb79450258778bc63d64832a (diff)
downloadcmd2-git-0ddf61a2b8640d38b182be9100f35350cb2c96f8.tar.gz
Consistently use :raises: instead of :raises (make sure there is a trailing colon)
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