From 65466a59867abebba16b6190903a5df267ba35ae Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Fri, 18 Jun 2021 18:46:05 -0700 Subject: [PATCH] Force keyword args in more cases --- masque/shapes/polygon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/masque/shapes/polygon.py b/masque/shapes/polygon.py index f01e77b..4b2c37c 100644 --- a/masque/shapes/polygon.py +++ b/masque/shapes/polygon.py @@ -115,6 +115,7 @@ class Polygon(Shape, metaclass=AutoSlots): @staticmethod def square(side_length: float, + *, rotation: float = 0.0, offset: vector2 = (0.0, 0.0), layer: layer_t = 0, @@ -148,6 +149,7 @@ class Polygon(Shape, metaclass=AutoSlots): @staticmethod def rectangle(lx: float, ly: float, + *, rotation: float = 0, offset: vector2 = (0.0, 0.0), layer: layer_t = 0, @@ -179,7 +181,8 @@ class Polygon(Shape, metaclass=AutoSlots): return poly @staticmethod - def rect(xmin: Optional[float] = None, + def rect(*, + xmin: Optional[float] = None, xctr: Optional[float] = None, xmax: Optional[float] = None, lx: Optional[float] = None,