From 24a3a5f8f956041beca238aa22b6ee5cf97ea975 Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Thu, 13 Jun 2024 19:46:36 +0900 Subject: [PATCH] Apply ruff --- labelme/widgets/canvas.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/labelme/widgets/canvas.py b/labelme/widgets/canvas.py index 57a298e6c..7817aec9a 100644 --- a/labelme/widgets/canvas.py +++ b/labelme/widgets/canvas.py @@ -540,7 +540,10 @@ def setHiding(self, enable=True): self._hideBackround = self.hideBackround if enable else False def canCloseShape(self): - return self.drawing() and ((self.current and len(self.current) > 2) or self.createMode in ["ai_polygon", "ai_mask"]) + return self.drawing() and ( + (self.current and len(self.current) > 2) + or self.createMode in ["ai_polygon", "ai_mask"] + ) def mouseDoubleClickEvent(self, ev): if self.double_click != "close":