diff --git a/bashcolor/__init__.py b/bashcolor/__init__.py index c9cda1f..0328745 100644 --- a/bashcolor/__init__.py +++ b/bashcolor/__init__.py @@ -6,7 +6,6 @@ # see also: http://misc.flogisoft.com/bash/tip_colors_and_formatting - from typing import Optional RESET = 0 @@ -100,14 +99,18 @@ def print_colors() -> None: color_pivot.append(256) color_pivot_start = color_pivot[:-1] color_pivot_end = color_pivot[1:] - color_table_list = [range(cs, ce) for cs, ce in zip(color_pivot_start, color_pivot_end)] + color_table_list = [ + range(cs, ce) for cs, ce in zip(color_pivot_start, color_pivot_end) + ] for color_table in color_table_list: text = "" for color in color_table: color_string = str(color) padding = "".join([" " for e in range(3 - len(color_string))]) - text += colorize(f" {padding}{color_string} ", background_256=color, with_end=False) + text += colorize( + f" {padding}{color_string} ", background_256=color, with_end=False + ) print(text + colorize("", background=DEFAULT))