From a467a0bacaa7f0d76f75a05cf2e07614d90ed38d Mon Sep 17 00:00:00 2001 From: jan Date: Mon, 9 Mar 2026 00:17:50 -0700 Subject: [PATCH] [Path] simplify conditional --- masque/shapes/path.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/masque/shapes/path.py b/masque/shapes/path.py index 706e2f4..a7b0ac6 100644 --- a/masque/shapes/path.py +++ b/masque/shapes/path.py @@ -486,9 +486,7 @@ class Path(Shape): return self def _calculate_cap_extensions(self) -> NDArray[numpy.float64]: - if self.cap == PathCap.Square: - extensions = numpy.full(2, self.width / 2) - elif self.cap == PathCap.Circle: + if self.cap in (PathCap.Square, PathCap.Circle): extensions = numpy.full(2, self.width / 2) elif self.cap == PathCap.SquareCustom: assert isinstance(self.cap_extensions, numpy.ndarray)