Skip to content

Commit 5b0ccfe

Browse files
committed
Remove unneeded ignores
1 parent fd1b7d8 commit 5b0ccfe

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/qcodes/parameters/parameter.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,7 @@ def call_command(self: Parameter, val: ParamRawDataType) -> Any:
303303
),
304304
)
305305
self._gettable = True
306-
# mypy resolves the type of self.get_raw to object here.
307-
# this may be resolvable if Command above is correctly wrapped in MethodType
308-
self.get = self._wrap_get(self.get_raw) # type: ignore[arg-type]
306+
self.get = self._wrap_get(self.get_raw)
309307

310308
if self.settable and set_cmd not in (None, False):
311309
raise TypeError(
@@ -334,9 +332,7 @@ def call_command(self: Parameter, val: ParamRawDataType) -> Any:
334332
Command(arg_count=1, cmd=set_cmd, exec_str=exec_str_write),
335333
)
336334
self._settable = True
337-
# mypy resolves the type of self.get_raw to object here.
338-
# this may be resolvable if Command above is correctly wrapped in MethodType
339-
self.set = self._wrap_set(self.set_raw) # type: ignore[arg-type]
335+
self.set = self._wrap_set(self.set_raw)
340336

341337
self._meta_attrs.extend(["label", "unit", "vals"])
342338

0 commit comments

Comments
 (0)