Skip to content
Snippets Groups Projects

Added ruff bugbear and simplify rules and reformatted code accordingly

Merged Simon Bjurek requested to merge add-ruff-settings into master
@@ -149,7 +149,7 @@ class SchedulerItem(SchedulerEvent, QGraphicsItemGroup):
def _color_change(self, color: QColor, name: str) -> None:
"""Change inactive color of operation item *."""
for op in self.components:
if name == "all operations" or name == op.operation.type_name():
if name in ("all operations", op.operation.type_name()):
op._set_background(color)
op._inactive_color = color
Loading