mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-03 00:13:46 +08:00
asyncio.Task: .cancelling() and .uncancel() now return int, not bool (#7405)
This commit is contained in:
1 parent
4b7d2a76cb
commit
47cccff9cb
1 file changed
+2
-2
@@ -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