diff --git a/src/qcodes/parameters/parameter.py b/src/qcodes/parameters/parameter.py index d5026682249a..e738857a82e6 100644 --- a/src/qcodes/parameters/parameter.py +++ b/src/qcodes/parameters/parameter.py @@ -51,7 +51,7 @@ def _set_manual_parameter( # cast is safe since we just checked this above using is_function function = cast(Callable[[str], ParamRawDataType], function) - def set_parameter_write(self: Parameter, *args) -> None: + def set_parameter_write(self: Parameter, *args: Any) -> None: # for some reason mypy does not understand # that cmd is a str even if this is defined inside # an if isinstance block @@ -112,7 +112,7 @@ def get_manual_parameter(self: Parameter) -> ParamRawDataType: # cast is safe since we just checked this above using is_function function = cast(Callable[[str], ParamRawDataType], function) - def get_parameter_ask(self: Parameter, *args) -> ParamRawDataType: + def get_parameter_ask(self: Parameter, *args: Any) -> ParamRawDataType: # for some reason mypy does not understand # that cmd is a str even if this is defined inside # an if isinstance block