Skip to content

Commit 45dfac4

Browse files
jenshnielsenCopilot
andcommitted
Use typed kwargs in QDev QDac parameter subclasses
Update QDevQDacMultiChannelParameter to use Unpack[ParameterBaseKWArgs] with concrete QDevQDacChannel instrument type. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 134bfc7 commit 45dfac4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/qcodes/instrument_drivers/QDev/QDac_channels.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@
1717
VisaInstrument,
1818
VisaInstrumentKWArgs,
1919
)
20-
from qcodes.parameters import MultiChannelInstrumentParameter, ParamRawDataType
20+
from qcodes.parameters import (
21+
MultiChannelInstrumentParameter,
22+
ParameterBaseKWArgs,
23+
ParamRawDataType,
24+
)
2125

2226
if TYPE_CHECKING:
2327
from collections.abc import Sequence
@@ -182,7 +186,7 @@ def __init__(
182186
self,
183187
channels: "Sequence[InstrumentChannel]",
184188
param_name: str,
185-
**kwargs: Any,
189+
**kwargs: "Unpack[ParameterBaseKWArgs]",
186190
):
187191
super().__init__(channels=channels, param_name=param_name, **kwargs)
188192

0 commit comments

Comments
 (0)