From 2bac085422a3c851d0e2489614b321c7cf8870ff Mon Sep 17 00:00:00 2001 From: Jens Hedegaard Nielsen Date: Wed, 10 Jun 2020 10:48:18 +0200 Subject: [PATCH] fix tests --- qcodes/tests/parameter/test_snapshot.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcodes/tests/parameter/test_snapshot.py b/qcodes/tests/parameter/test_snapshot.py index b5866a6d041..f351081c47d 100644 --- a/qcodes/tests/parameter/test_snapshot.py +++ b/qcodes/tests/parameter/test_snapshot.py @@ -1,4 +1,4 @@ -from typing import Union, Optional, Callable +from typing import Union, Optional, Callable, Dict, Any from datetime import datetime, timedelta from qcodes.instrument.parameter import Parameter @@ -10,10 +10,10 @@ def create_parameter(snapshot_get: bool, cache_is_valid: bool, get_cmd: Optional[Union[Callable, bool]], offset: Union[str, float] = NOT_PASSED): - kwargs = dict(set_cmd=None, - label='Parameter', - unit='a.u.', - docstring='some docs') + kwargs: Dict[str, Any] = dict(set_cmd=None, + label='Parameter', + unit='a.u.', + docstring='some docs') if offset != NOT_PASSED: kwargs.update(offset=offset) @@ -43,7 +43,7 @@ def wrapped_func(*args, **kwargs): return wrapped_func p.get = wrap_in_call_counter(p.get) - assert p.get.call_count() == 0 # pre-condition + assert p.get.call_count() == 0 # type: ignore[attr-defined] # pre-condition else: assert not hasattr(p, 'get') # pre-condition assert not p.gettable