Skip to content

Commit a990d25

Browse files
committed
fixup! Move Sleeper helper to openeo.testing.util
1 parent bf6186f commit a990d25

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

openeo/testing/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import contextlib
24
import time
35
import typing
@@ -24,7 +26,7 @@ def __init__(self):
2426
self.history = []
2527

2628
@contextlib.contextmanager
27-
def patch(self, time_machine: time_machine.TimeMachineFixture) -> typing.Iterator["_Sleeper"]:
29+
def patch(self, time_machine: time_machine.TimeMachineFixture) -> typing.Iterator[Sleeper]:
2830
orig_sleep = time.sleep
2931

3032
def sleep(seconds):

0 commit comments

Comments
 (0)