From 5b0ccfeae2baf90a48423543d4573e12e932b93f Mon Sep 17 00:00:00 2001 From: "Jens H. Nielsen" Date: Wed, 8 May 2024 13:26:13 +0200 Subject: [PATCH] Remove unneeded ignores --- src/qcodes/parameters/parameter.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/qcodes/parameters/parameter.py b/src/qcodes/parameters/parameter.py index d24f0d94a366..effda2573f30 100644 --- a/src/qcodes/parameters/parameter.py +++ b/src/qcodes/parameters/parameter.py @@ -303,9 +303,7 @@ def call_command(self: Parameter, val: ParamRawDataType) -> Any: ), ) self._gettable = True - # mypy resolves the type of self.get_raw to object here. - # this may be resolvable if Command above is correctly wrapped in MethodType - self.get = self._wrap_get(self.get_raw) # type: ignore[arg-type] + self.get = self._wrap_get(self.get_raw) if self.settable and set_cmd not in (None, False): raise TypeError( @@ -334,9 +332,7 @@ def call_command(self: Parameter, val: ParamRawDataType) -> Any: Command(arg_count=1, cmd=set_cmd, exec_str=exec_str_write), ) self._settable = True - # mypy resolves the type of self.get_raw to object here. - # this may be resolvable if Command above is correctly wrapped in MethodType - self.set = self._wrap_set(self.set_raw) # type: ignore[arg-type] + self.set = self._wrap_set(self.set_raw) self._meta_attrs.extend(["label", "unit", "vals"])