Big diff: use lower-case list and dict (#5888)

This commit is contained in:
Akuli
2021-08-08 19:26:35 +03:00
committed by GitHub
parent 11f54c3407
commit ce11072dbe
325 changed files with 2196 additions and 2334 deletions

View File

@@ -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):