mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -4,7 +4,7 @@ import sys
|
||||
from _typeshed import ReadableBuffer, Self, StrOrBytesPath, WriteableBuffer
|
||||
from os import _Opener
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, BinaryIO, Callable, Iterable, Iterator, List, TextIO, Tuple, Type
|
||||
from typing import IO, Any, BinaryIO, Callable, Iterable, Iterator, TextIO, Tuple, Type
|
||||
|
||||
DEFAULT_BUFFER_SIZE: int
|
||||
|
||||
@@ -34,7 +34,7 @@ class IOBase:
|
||||
def isatty(self) -> bool: ...
|
||||
def readable(self) -> bool: ...
|
||||
read: Callable[..., Any]
|
||||
def readlines(self, __hint: int = ...) -> List[bytes]: ...
|
||||
def readlines(self, __hint: int = ...) -> list[bytes]: ...
|
||||
def seek(self, __offset: int, __whence: int = ...) -> int: ...
|
||||
def seekable(self) -> bool: ...
|
||||
def tell(self) -> int: ...
|
||||
@@ -126,7 +126,7 @@ class TextIOBase(IOBase):
|
||||
def write(self, __s: str) -> int: ...
|
||||
def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore
|
||||
def readline(self, __size: int = ...) -> str: ... # type: ignore
|
||||
def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore
|
||||
def readlines(self, __hint: int = ...) -> list[str]: ... # type: ignore
|
||||
def read(self, __size: int | None = ...) -> str: ...
|
||||
def tell(self) -> int: ...
|
||||
|
||||
@@ -164,7 +164,7 @@ class TextIOWrapper(TextIOBase, TextIO):
|
||||
def __next__(self) -> str: ... # type: ignore
|
||||
def writelines(self, __lines: Iterable[str]) -> None: ... # type: ignore
|
||||
def readline(self, __size: int = ...) -> str: ... # type: ignore
|
||||
def readlines(self, __hint: int = ...) -> List[str]: ... # type: ignore
|
||||
def readlines(self, __hint: int = ...) -> list[str]: ... # type: ignore
|
||||
def seek(self, __cookie: int, __whence: int = ...) -> int: ...
|
||||
|
||||
class StringIO(TextIOWrapper):
|
||||
|
||||
Reference in New Issue
Block a user