diff --git a/stdlib/asyncio/tasks.pyi b/stdlib/asyncio/tasks.pyi index 9acb96b91..140fc106b 100644 --- a/stdlib/asyncio/tasks.pyi +++ b/stdlib/asyncio/tasks.pyi @@ -315,8 +315,8 @@ class Task(Future[_T], Generic[_T]): else: def cancel(self) -> bool: ... if sys.version_info >= (3, 11): - def cancelling(self) -> bool: ... - def uncancel(self) -> bool: ... + def cancelling(self) -> int: ... + def uncancel(self) -> int: ... if sys.version_info < (3, 9): @classmethod def current_task(cls, loop: AbstractEventLoop | None = ...) -> Task[Any] | None: ...