Skip to content

Commit 1bbb509

Browse files
committed
[stringbuilder] segment_line and segment_quadratic_curve use color by default
1 parent 7a47040 commit 1bbb509

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/pathins/stringbuilder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ def _transformed_component(components_with_transforms: Sequence[Tuple]) -> str:
174174

175175

176176
def segment_line(
177-
coord1: Coordinate, coord2: Coordinate, distance: float, nocolor: bool
177+
coord1: Coordinate, coord2: Coordinate, distance: float, nocolor: bool = False
178178
) -> str:
179179
if not nocolor and IS_A_TTY:
180180
# color coord1 start and end points
@@ -207,7 +207,7 @@ def segment_quadratic_curve(
207207
coord2: Coordinate,
208208
coord3: Coordinate,
209209
distance: float,
210-
nocolor: bool,
210+
nocolor: bool = False,
211211
) -> str:
212212
if not nocolor and IS_A_TTY:
213213
if coord1.startpoint:

0 commit comments

Comments
 (0)