mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -2,7 +2,7 @@ import concurrent.futures
|
||||
import sys
|
||||
from collections.abc import Awaitable, Generator, Iterable, Iterator
|
||||
from types import FrameType
|
||||
from typing import Any, Generic, List, Optional, Set, TextIO, Tuple, TypeVar, Union, overload
|
||||
from typing import Any, Generic, Optional, Set, TextIO, Tuple, TypeVar, Union, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
from .events import AbstractEventLoop
|
||||
@@ -89,7 +89,7 @@ if sys.version_info >= (3, 10):
|
||||
coro_or_future6: _FutureT[Any],
|
||||
*coros_or_futures: _FutureT[Any],
|
||||
return_exceptions: bool = ...,
|
||||
) -> Future[List[Any]]: ...
|
||||
) -> Future[list[Any]]: ...
|
||||
@overload
|
||||
def gather(coro_or_future1: _FutureT[_T1], *, return_exceptions: bool = ...) -> Future[Tuple[_T1 | BaseException]]: ...
|
||||
@overload
|
||||
@@ -180,7 +180,7 @@ else:
|
||||
*coros_or_futures: _FutureT[Any],
|
||||
loop: AbstractEventLoop | None = ...,
|
||||
return_exceptions: bool = ...,
|
||||
) -> Future[List[Any]]: ...
|
||||
) -> Future[list[Any]]: ...
|
||||
@overload
|
||||
def gather(
|
||||
coro_or_future1: _FutureT[_T1], *, loop: AbstractEventLoop | None = ..., return_exceptions: bool = ...
|
||||
@@ -268,7 +268,7 @@ class Task(Future[_T], Generic[_T]):
|
||||
def get_coro(self) -> Generator[_TaskYieldType, None, _T] | Awaitable[_T]: ...
|
||||
def get_name(self) -> str: ...
|
||||
def set_name(self, __value: object) -> None: ...
|
||||
def get_stack(self, *, limit: int | None = ...) -> List[FrameType]: ...
|
||||
def get_stack(self, *, limit: int | None = ...) -> list[FrameType]: ...
|
||||
def print_stack(self, *, limit: int | None = ..., file: TextIO | None = ...) -> None: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def cancel(self, msg: str | None = ...) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user