Skip to content

Commit

Permalink
Add missing type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Jun 9, 2024
1 parent ee319b4 commit 8b6fca4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qcodes/parameters/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,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
Expand Down Expand Up @@ -110,7 +110,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
Expand Down

0 comments on commit 8b6fca4

Please sign in to comment.