Ver Fonte

Apply ruff

Kentaro Wada há 1 ano atrás
pai
commit
c0330d4ffa
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      labelme/app.py

+ 1 - 1
labelme/app.py

@@ -1510,7 +1510,7 @@ class MainWindow(QtWidgets.QMainWindow):
         flag = value
         for item in self.labelList:
             if value is None:
-                flag = (item.checkState() == Qt.Unchecked)
+                flag = item.checkState() == Qt.Unchecked
             item.setCheckState(Qt.Checked if flag else Qt.Unchecked)
 
     def loadFile(self, filename=None):