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 Aug 2, 2024
1 parent d21c682 commit 913c886
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 @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 913c886

Please sign in to comment.