Skip to content

Commit

Permalink
Merge pull request #15 from tmetzl/patch-1
Browse files Browse the repository at this point in the history
Fix docstring for colored function
  • Loading branch information
hugovk committed Aug 11, 2022
2 parents 8fa860d + 1db63d9 commit c7ac36b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/termcolor/termcolor.py
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 c7ac36b

Please sign in to comment.