mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use lowercase tuple where possible (#6170)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from concurrent.futures._base import Error, Future as _ConcurrentFuture
|
||||
from typing import Any, Awaitable, Callable, Generator, Iterable, Tuple, TypeVar
|
||||
from typing import Any, Awaitable, Callable, Generator, Iterable, TypeVar
|
||||
|
||||
from .events import AbstractEventLoop
|
||||
|
||||
@@ -38,7 +38,7 @@ class Future(Awaitable[_T], Iterable[_T]):
|
||||
def __del__(self) -> None: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def get_loop(self) -> AbstractEventLoop: ...
|
||||
def _callbacks(self: _S) -> list[Tuple[Callable[[_S], Any], Context]]: ...
|
||||
def _callbacks(self: _S) -> list[tuple[Callable[[_S], Any], Context]]: ...
|
||||
def add_done_callback(self: _S, __fn: Callable[[_S], Any], *, context: Context | None = ...) -> None: ...
|
||||
else:
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user