Skip to content

Commit

Permalink
add a type for pycharms linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Jun 10, 2020
1 parent caf3947 commit 5d7cd07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qcodes/tests/parameter/test_snapshot.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Union, Optional
from typing import Union, Optional, Callable
from datetime import datetime, timedelta

from qcodes.instrument.parameter import Parameter
Expand All @@ -8,7 +8,7 @@
def create_parameter(snapshot_get: bool,
snapshot_value: bool,
cache_is_valid: bool,
get_cmd: Optional[bool],
get_cmd: Optional[Union[Callable, bool]],
offset: Union[str, float] = NOT_PASSED):
kwargs = dict(set_cmd=None,
label='Parameter',
Expand Down

0 comments on commit 5d7cd07

Please sign in to comment.