Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade mypy to 1.0.0 #203

Merged
merged 3 commits into from
Feb 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions qcodes_contrib_drivers/drivers/Bilt/ITest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
from math import ceil
from time import sleep

from qcodes.instrument.base import Instrument
from qcodes.instrument.channel import InstrumentChannel, ChannelList
from qcodes.instrument.channel import MultiChannelInstrumentParameter
from qcodes.instrument.visa import VisaInstrument
from qcodes.instrument import Instrument
from qcodes.instrument import InstrumentChannel, ChannelList
from qcodes.parameters import MultiChannelInstrumentParameter
from qcodes.instrument import VisaInstrument
from qcodes.utils import validators as vals
from qcodes.utils.helpers import create_on_off_val_mapping
from qcodes.parameters import create_on_off_val_mapping

class iTestChannel(InstrumentChannel):
"""
Expand Down Expand Up @@ -315,7 +315,7 @@ def _set_output_function(self, chan:int,
elif outf=='ramp':
mode = '1'
else:
raise ValueError('Got unexpected output function mode: {}.'.format(mode))
raise ValueError(f'Got unexpected output function mode: {outf}.')

self.write(chan_id + 'trig:input ' + mode)

Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mypy==0.991
ipython==8.9.0
mypy~=1.0.0
ipython~=8.9.0