mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
asyncio.Task: .cancelling() and .uncancel() now return int, not bool (#7405)
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user