mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Change numerous default values to ... (#1722)
This is the convention, and some default values (e.g. strings) apparently break pytype.
This commit is contained in:
committed by
Matthias Kramm
parent
66821993f6
commit
54dd6ba27c
@@ -102,8 +102,8 @@ class BytesIO(BinaryIO):
|
||||
def __iter__(self) -> Iterator[bytes]: ...
|
||||
def __next__(self) -> bytes: ...
|
||||
def __enter__(self) -> 'BytesIO': ...
|
||||
def __exit__(self, t: Optional[type] = None, value: Optional[BaseException] = None,
|
||||
traceback: Optional[Any] = None) -> bool: ...
|
||||
def __exit__(self, t: Optional[type] = ..., value: Optional[BaseException] = ...,
|
||||
traceback: Optional[Any] = ...) -> bool: ...
|
||||
def close(self) -> None: ...
|
||||
def fileno(self) -> int: ...
|
||||
def flush(self) -> None: ...
|
||||
@@ -205,8 +205,8 @@ class TextIOWrapper(TextIO):
|
||||
write_through: bool = ...
|
||||
) -> None: ...
|
||||
# copied from IOBase
|
||||
def __exit__(self, t: Optional[type] = None, value: Optional[BaseException] = None,
|
||||
traceback: Optional[Any] = None) -> bool: ...
|
||||
def __exit__(self, t: Optional[type] = ..., value: Optional[BaseException] = ...,
|
||||
traceback: Optional[Any] = ...) -> bool: ...
|
||||
def close(self) -> None: ...
|
||||
def fileno(self) -> int: ...
|
||||
def flush(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user