mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Consistently use '= ...' for optional parameters.
This commit is contained in:
@@ -5,17 +5,17 @@ from typing import Any, IO, AnyStr, Iterator, Iterable, Generic, List
|
||||
class StringIO(IO[AnyStr], Generic[AnyStr]):
|
||||
closed = ... # type: bool
|
||||
softspace = ... # type: int
|
||||
def __init__(self, buf: AnyStr = '') -> None: ...
|
||||
def __init__(self, buf: AnyStr = ...) -> None: ...
|
||||
def __iter__(self) -> Iterator[AnyStr]: ...
|
||||
def next(self) -> AnyStr: ...
|
||||
def close(self) -> None: ...
|
||||
def isatty(self) -> bool: ...
|
||||
def seek(self, pos: int, mode: int = 0) -> None: ...
|
||||
def seek(self, pos: int, mode: int = ...) -> None: ...
|
||||
def tell(self) -> int: ...
|
||||
def read(self, n: int = -1) -> AnyStr: ...
|
||||
def readline(self, length: int = None) -> AnyStr: ...
|
||||
def readlines(self, sizehint: int = 0) -> List[AnyStr]: ...
|
||||
def truncate(self, size: int = None) -> int: ...
|
||||
def read(self, n: int = ...) -> AnyStr: ...
|
||||
def readline(self, length: int = ...) -> AnyStr: ...
|
||||
def readlines(self, sizehint: int = ...) -> List[AnyStr]: ...
|
||||
def truncate(self, size: int = ...) -> int: ...
|
||||
def write(self, s: AnyStr) -> None: ...
|
||||
def writelines(self, iterable: Iterable[AnyStr]) -> None: ...
|
||||
def flush(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user