Skip to content

Commit ffa340e

Browse files
pyright
1 parent c97c961 commit ffa340e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test_genie_python_dae.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from datetime import timedelta
99
from threading import Thread
1010
from time import sleep
11-
from typing import Callable
11+
from typing import Any, Callable
1212

1313
import h5py
1414
from parameterized import parameterized
@@ -182,7 +182,7 @@ def test_GIVEN_running_instrument_WHEN_block_logging_but_not_changing_THEN_block
182182
g.waitfor_runstate("SETUP", maxwaitsecs=self.TIMEOUT)
183183
nexus_path = r"/raw_data_1/selog/{}/value_log".format(test_block_name)
184184

185-
def test_function(f: h5py.File, run_number: int) -> None:
185+
def test_function(f: Any, run_number: int) -> None:
186186
# if no values are logged this will fail with a
187187
# "Unable to synchronously open object (component not found)" exception
188188
values = [val for val in f[nexus_path + r"/value"][:]]
@@ -191,7 +191,7 @@ def test_function(f: h5py.File, run_number: int) -> None:
191191
)
192192
self.assertTrue(
193193
len(values) > 0,
194-
f"Not enough values logged to file with delay {delay}",
194+
"Not enough values logged to file",
195195
)
196196

197197
nexus_file_with_retry(g.adv.get_instrument(), run_number, test_function)
@@ -319,7 +319,7 @@ def _assert_title_correct(self, test_title, expected_title):
319319

320320
g.waitfor_runstate("SETUP", maxwaitsecs=self.TIMEOUT)
321321

322-
def test_func(f: h5py.File, run_number: int) -> None:
322+
def test_func(f: Any, run_number: int) -> None:
323323
saved_title = f["/raw_data_1/title"][0].decode()
324324
self.assertEqual(expected_title, saved_title)
325325

0 commit comments

Comments
 (0)