mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-01 00:53:23 +08:00
Add Optional[] for all remaining cases of x: <type> = None (#1424)
* Final round of adding Optional[] to type of arguments with default = None * Update Travis to use --no-implicit-optionals and clarify CONTRIBUTING.md
This commit is contained in:
committed by
Matthias Kramm
parent
81f77b17ec
commit
350563223f
@@ -106,8 +106,8 @@ class BytesIO(BinaryIO):
|
||||
def __iter__(self) -> Iterator[bytes]: ...
|
||||
def __next__(self) -> bytes: ...
|
||||
def __enter__(self) -> 'BytesIO': ...
|
||||
def __exit__(self, t: type = None, value: BaseException = None,
|
||||
traceback: Any = None) -> bool: ...
|
||||
def __exit__(self, t: Optional[type] = None, value: Optional[BaseException] = None,
|
||||
traceback: Optional[Any] = None) -> bool: ...
|
||||
def close(self) -> None: ...
|
||||
def fileno(self) -> int: ...
|
||||
def flush(self) -> None: ...
|
||||
@@ -210,8 +210,8 @@ class TextIOWrapper(TextIO):
|
||||
write_through: bool = ...
|
||||
) -> None: ...
|
||||
# copied from IOBase
|
||||
def __exit__(self, t: type = None, value: BaseException = None,
|
||||
traceback: Any = None) -> bool: ...
|
||||
def __exit__(self, t: Optional[type] = None, value: Optional[BaseException] = None,
|
||||
traceback: Optional[Any] = None) -> bool: ...
|
||||
def close(self) -> None: ...
|
||||
def fileno(self) -> int: ...
|
||||
def flush(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user