Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen authored Mar 11, 2022
2 parents 93af820 + 0a580b1 commit b546073
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qcodes_contrib_drivers/drivers/NationalInstruments/Switch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from typing import Dict, List, Optional, cast
from typing import Dict, List, Optional

from niswitch import PathCapability, Session
from qcodes import ChannelList, Instrument, InstrumentChannel
Expand Down Expand Up @@ -118,7 +118,7 @@ def _read_connections(self) -> List[str]:
self._update_connection_list()
return [ch.short_name for ch in self.connection_list]

def connect_to(self, other: "InstrumentChannel") -> None:
def connect_to(self, other: "SwitchChannel") -> None:
"""
Connect this channel to another channel. If either of the channels is
already connected to something else, disconnect both channels first. If
Expand All @@ -143,7 +143,7 @@ def connect_to(self, other: "InstrumentChannel") -> None:
self.connection_list.append(other)
other.connection_list.append(self)

def disconnect_from(self, other: "InstrumentChannel") -> None:
def disconnect_from(self, other: "SwitchChannel") -> None:
"""
Disconnect this channel from another chanel. If the channels are not
connected, raises a ``DriverError``.
Expand Down

0 comments on commit b546073

Please sign in to comment.