From 950a63349db248590e8ef178ab37629d747624bd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 30 Aug 2024 11:27:45 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/qibolab/sweeper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qibolab/sweeper.py b/src/qibolab/sweeper.py index 0a85d1efe..ef3f4dbb9 100644 --- a/src/qibolab/sweeper.py +++ b/src/qibolab/sweeper.py @@ -9,7 +9,6 @@ from .pulses import Pulse from .serialize import Model - _PULSE = "pulse" _CHANNEL = "channel" @@ -27,7 +26,7 @@ class Parameter(Enum): @classmethod def channels(cls) -> set["Parameter"]: """Set of parameters to be swept on the channel.""" - return set(p for p in cls if p.value[1] == _CHANNEL) + return {p for p in cls if p.value[1] == _CHANNEL} _Field = tuple[Any, str]