Skip to content

Commit

Permalink
Fix docstring for colored function
Browse files Browse the repository at this point in the history
  • Loading branch information
tmetzl committed Aug 10, 2022
1 parent 8fa860d commit 1db63d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/termcolor/termcolor.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ def colored(
"""Colorize text.
Available text colors:
red, green, yellow, blue, magenta, cyan, white.
grey, red, green, yellow, blue, magenta, cyan, white.
Available text highlights:
on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white.
on_grey, on_red, on_green, on_yellow, on_blue, on_magenta, on_cyan, on_white.
Available attributes:
bold, dark, underline, blink, reverse, concealed.
Example:
colored('Hello, World!', 'red', 'on_grey', ['blue', 'blink'])
colored('Hello, World!', 'red', 'on_grey', ['bold', 'blink'])
colored('Hello, World!', 'green')
"""
if "NO_COLOR" in os.environ or "ANSI_COLORS_DISABLED" in os.environ:
Expand Down

0 comments on commit 1db63d9

Please sign in to comment.