From 2259e7987bbd86c26230f794a3493a82bf138a66 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sun, 9 Jun 2019 23:59:55 -0700 Subject: [PATCH] don't rename shape.to_polygons() args --- masque/shapes/polygon.py | 4 ++-- masque/shapes/text.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/masque/shapes/polygon.py b/masque/shapes/polygon.py index 04b91c7..a899229 100644 --- a/masque/shapes/polygon.py +++ b/masque/shapes/polygon.py @@ -222,8 +222,8 @@ class Polygon(Shape): def to_polygons(self, - _poly_num_points: int = None, - _poly_max_arclen: float = None, + poly_num_points: int = None, # unused + poly_max_arclen: float = None, # unused ) -> List['Polygon']: return [copy.deepcopy(self)] diff --git a/masque/shapes/text.py b/masque/shapes/text.py index f6c4aac..f05e7bd 100644 --- a/masque/shapes/text.py +++ b/masque/shapes/text.py @@ -96,8 +96,8 @@ class Text(Shape): return new def to_polygons(self, - _poly_num_points: int = None, - _poly_max_arclen: float = None, + poly_num_points: int = None, # unused + poly_max_arclen: float = None, # unused ) -> List[Polygon]: all_polygons = [] total_advance = 0