From 9c2e403036bc4e804c15cf258b41440837eaa76b Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Fri, 17 Sep 2021 23:35:26 -0700 Subject: [PATCH] style change to prevent false codacy critical alert --- svgpathtools/path.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/svgpathtools/path.py b/svgpathtools/path.py index 31e91ce..d3f5e3a 100644 --- a/svgpathtools/path.py +++ b/svgpathtools/path.py @@ -80,11 +80,14 @@ _is_smooth_from_warning = \ def bezier_segment(*bpoints): if len(bpoints) == 2: - return Line(*bpoints) + start, end = bpoints + return Line(start, end) elif len(bpoints) == 4: - return CubicBezier(*bpoints) + start, control1, control2, end = bpoints + return CubicBezier(start, control1, control2, end) elif len(bpoints) == 3: - return QuadraticBezier(*bpoints) + start, control, end = bpoints + return QuadraticBezier(start, control, end) else: assert len(bpoints) in (2, 3, 4)