We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf6186f commit a990d25Copy full SHA for a990d25
1 file changed
openeo/testing/util.py
@@ -1,3 +1,5 @@
1
+from __future__ import annotations
2
+
3
import contextlib
4
import time
5
import typing
@@ -24,7 +26,7 @@ def __init__(self):
24
26
self.history = []
25
27
28
@contextlib.contextmanager
- def patch(self, time_machine: time_machine.TimeMachineFixture) -> typing.Iterator["_Sleeper"]:
29
+ def patch(self, time_machine: time_machine.TimeMachineFixture) -> typing.Iterator[Sleeper]:
30
orig_sleep = time.sleep
31
32
def sleep(seconds):
0 commit comments