Skip to content

Commit 8b49dea

Browse files
committed
Minor fix to docstring of ansi.style()
1 parent 9420bb3 commit 8b49dea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/ansi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ def style(text: Any, *, fg: str = '', bg: str = '', bold: bool = False, underlin
138138
to undo whatever styling was done at the beginning.
139139
140140
:param text: Any object compatible with str.format()
141-
:param fg: foreground color. Expects color names in FG_COLORS (e.g. 'red'). Defaults to no color.
142-
:param bg: background color. Expects color names in BG_COLORS (e.g. 'black'). Defaults to no color.
141+
:param fg: foreground color. Relies on `fg_lookup()` to retrieve ANSI escape based on name. Defaults to no color.
142+
:param bg: background color. Relies on `bg_lookup()` to retrieve ANSI escape based on name. Defaults to no color.
143143
:param bold: apply the bold style if True. Defaults to False.
144144
:param underline: apply the underline style if True. Defaults to False.
145145
:return: the stylized string

0 commit comments

Comments
 (0)