mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-08 05:04:44 +08:00
Upgrade black version (#7089)
This commit is contained in:
1 parent
9854926289
commit
b88a6f19cd
173 files changed
+496
-2
No files matched your search
@@ -6,6 +6,7 @@ from .events import AbstractEventLoop
|
||||
|
||||
if sys.version_info < (3, 8):
|
||||
from concurrent.futures import CancelledError as CancelledError, TimeoutError as TimeoutError
|
||||
|
||||
class InvalidStateError(Error): ...
|
||||
|
||||
if sys.version_info >= (3, 7):
|
||||
@@ -48,6 +49,7 @@ class Future(Awaitable[_T], Iterable[_T]):
|
||||
def cancel(self, msg: Any | None = ...) -> bool: ...
|
||||
else:
|
||||
def cancel(self) -> bool: ...
|
||||
|
||||
def cancelled(self) -> bool: ...
|
||||
def done(self) -> bool: ...
|
||||
def result(self) -> _T: ...
|
||||
|
||||
Reference in new issue
Block a user