Skip to content

Commit

Permalink
Remove unneeded ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed May 8, 2024
1 parent 8351680 commit c7fb39c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/qcodes/parameters/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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"])

Expand Down

0 comments on commit c7fb39c

Please sign in to comment.