mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import Any, BinaryIO, Generic, Iterable, List, MutableSequence, Tuple, TypeVar, Union, overload
|
||||
from typing import Any, BinaryIO, Generic, Iterable, MutableSequence, Tuple, TypeVar, Union, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
_IntTypeCode = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"]
|
||||
@@ -29,7 +29,7 @@ class array(MutableSequence[_T], Generic[_T]):
|
||||
def extend(self, __bb: Iterable[_T]) -> None: ...
|
||||
def frombytes(self, __buffer: bytes) -> None: ...
|
||||
def fromfile(self, __f: BinaryIO, __n: int) -> None: ...
|
||||
def fromlist(self, __list: List[_T]) -> None: ...
|
||||
def fromlist(self, __list: list[_T]) -> None: ...
|
||||
def fromunicode(self, __ustr: str) -> None: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
def index(self, __v: _T, __start: int = ..., __stop: int = ...) -> int: ...
|
||||
@@ -41,7 +41,7 @@ class array(MutableSequence[_T], Generic[_T]):
|
||||
def reverse(self) -> None: ...
|
||||
def tobytes(self) -> bytes: ...
|
||||
def tofile(self, __f: BinaryIO) -> None: ...
|
||||
def tolist(self) -> List[_T]: ...
|
||||
def tolist(self) -> list[_T]: ...
|
||||
def tounicode(self) -> str: ...
|
||||
if sys.version_info < (3, 9):
|
||||
def fromstring(self, __buffer: bytes) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user