mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-22 09:38:50 +08:00
Big diff: use lower-case list and dict (#5888)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from _typeshed import ReadableBuffer, StrOrBytesPath, WriteableBuffer
|
||||
from io import FileIO
|
||||
from typing import Iterable, List
|
||||
from typing import Iterable
|
||||
|
||||
from ..base import AsyncBase
|
||||
|
||||
@@ -11,7 +11,7 @@ class _UnknownAsyncBinaryIO(AsyncBase[bytes]):
|
||||
async def read(self, __size: int = ...) -> bytes: ...
|
||||
async def readinto(self, __buffer: WriteableBuffer) -> int | None: ...
|
||||
async def readline(self, __size: int | None = ...) -> bytes: ...
|
||||
async def readlines(self, __hint: int = ...) -> List[bytes]: ...
|
||||
async def readlines(self, __hint: int = ...) -> list[bytes]: ...
|
||||
async def seek(self, __offset: int, __whence: int = ...) -> int: ...
|
||||
async def seekable(self) -> bool: ...
|
||||
async def tell(self) -> int: ...
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from typing import BinaryIO, Iterable, List, Tuple
|
||||
from typing import BinaryIO, Iterable, Tuple
|
||||
|
||||
from ..base import AsyncBase
|
||||
|
||||
@@ -9,7 +9,7 @@ class AsyncTextIOWrapper(AsyncBase[str]):
|
||||
async def isatty(self) -> bool: ...
|
||||
async def read(self, __size: int | None = ...) -> str: ...
|
||||
async def readline(self, __size: int = ...) -> str: ...
|
||||
async def readlines(self, __hint: int = ...) -> List[str]: ...
|
||||
async def readlines(self, __hint: int = ...) -> list[str]: ...
|
||||
async def seek(self, __offset: int, __whence: int = ...) -> int: ...
|
||||
async def seekable(self) -> bool: ...
|
||||
async def tell(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user