Skip to content

Commit 21a0e73

Browse files
committed
[stringbuilder] expand type annotations
1 parent 611279c commit 21a0e73

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/pathins/stringbuilder.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
reset: Text = ansicolors["RESET"]
2424

2525

26-
def green_text(text: str, nocolor=False) -> str:
26+
def green_text(text: str, nocolor: bool = False) -> str:
2727
"""
2828
Returns green ANSI escape code colored text string
2929
"""
@@ -33,7 +33,7 @@ def green_text(text: str, nocolor=False) -> str:
3333
return text
3434

3535

36-
def red_text(text: str, nocolor=False) -> str:
36+
def red_text(text: str, nocolor: bool = False) -> str:
3737
"""
3838
Returns red ANSI escape code colored text string
3939
"""
@@ -43,7 +43,7 @@ def red_text(text: str, nocolor=False) -> str:
4343
return text
4444

4545

46-
def report_header(header: str, nocolor=False) -> str:
46+
def report_header(header: str, nocolor: bool = False) -> str:
4747
header_len = len(header) + 1
4848
divider_char = "-"
4949
if not nocolor and sys.stdout.isatty():
@@ -61,7 +61,7 @@ def report_header(header: str, nocolor=False) -> str:
6161
return header_string
6262

6363

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:
6565
# color
6666
if not nocolor and sys.stdout.isatty():
6767
if test_pass:
@@ -83,7 +83,7 @@ def direction_result(
8383
direction_clockwise: bool,
8484
contours: int,
8585
components_with_transforms: Sequence[Tuple] = [],
86-
nocolor=False,
86+
nocolor: bool = False,
8787
) -> str:
8888
if not nocolor and sys.stdout.isatty():
8989
if contours == 0:

0 commit comments

Comments
 (0)