23
23
reset : Text = ansicolors ["RESET" ]
24
24
25
25
26
- def green_text (text : str , nocolor = False ) -> str :
26
+ def green_text (text : str , nocolor : bool = False ) -> str :
27
27
"""
28
28
Returns green ANSI escape code colored text string
29
29
"""
@@ -33,7 +33,7 @@ def green_text(text: str, nocolor=False) -> str:
33
33
return text
34
34
35
35
36
- def red_text (text : str , nocolor = False ) -> str :
36
+ def red_text (text : str , nocolor : bool = False ) -> str :
37
37
"""
38
38
Returns red ANSI escape code colored text string
39
39
"""
@@ -43,7 +43,7 @@ def red_text(text: str, nocolor=False) -> str:
43
43
return text
44
44
45
45
46
- def report_header (header : str , nocolor = False ) -> str :
46
+ def report_header (header : str , nocolor : bool = False ) -> str :
47
47
header_len = len (header ) + 1
48
48
divider_char = "-"
49
49
if not nocolor and sys .stdout .isatty ():
@@ -61,7 +61,7 @@ def report_header(header: str, nocolor=False) -> str:
61
61
return header_string
62
62
63
63
64
- def overlap_result (glyphname : str , test_pass : bool , nocolor = False ) -> str :
64
+ def overlap_result (glyphname : str , test_pass : bool , nocolor : bool = False ) -> str :
65
65
# color
66
66
if not nocolor and sys .stdout .isatty ():
67
67
if test_pass :
@@ -83,7 +83,7 @@ def direction_result(
83
83
direction_clockwise : bool ,
84
84
contours : int ,
85
85
components_with_transforms : Sequence [Tuple ] = [],
86
- nocolor = False ,
86
+ nocolor : bool = False ,
87
87
) -> str :
88
88
if not nocolor and sys .stdout .isatty ():
89
89
if contours == 0 :
0 commit comments