File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/service-library/src/servicelib Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 77from functools import wraps
88from typing import TYPE_CHECKING , Any , ParamSpec , TypeVar
99
10- from pydantic import NonNegativeFloat
11-
1210from . import tracing
1311from .utils_profiling_middleware import dont_profile , is_profiling , profile_context
1412
@@ -225,7 +223,7 @@ class TaskCancelled(Exception):
225223async def _poller_for_task_group (
226224 close_event : asyncio .Event ,
227225 cancel_awaitable : TaskCancelCallback ,
228- poll_interval : NonNegativeFloat ,
226+ poll_interval : float ,
229227):
230228 """
231229 Polls for cancellation via the callback and raises TaskCancelled if it occurs.
@@ -241,7 +239,7 @@ async def run_until_cancelled(
241239 * ,
242240 coro : Coroutine ,
243241 cancel_callback : TaskCancelCallback ,
244- poll_interval : NonNegativeFloat = _POLL_INTERVAL_S ,
242+ poll_interval : float = _POLL_INTERVAL_S ,
245243) -> Any :
246244 """
247245 Runs the given coroutine until it completes or cancellation is requested.
You can’t perform that action at this time.
0 commit comments