Allow to specify None to encoding parameter of fdopen (fix #2321) (#2324)

This commit is contained in:
Linda_pp
2018-07-12 11:43:13 +09:00
committed by Jelle Zijlstra
parent 2899d0a6aa
commit 8d13a377d4

View File

@@ -316,7 +316,7 @@ def putenv(key: Union[bytes, Text], value: Union[bytes, Text]) -> None: ...
def unsetenv(key: Union[bytes, Text]) -> None: ...
# Return IO or TextIO
def fdopen(fd: int, mode: str = ..., buffering: int = ..., encoding: str = ...,
def fdopen(fd: int, mode: str = ..., buffering: int = ..., encoding: Optional[str] = ...,
errors: str = ..., newline: str = ..., closefd: bool = ...) -> Any: ...
def close(fd: int) -> None: ...
def closerange(fd_low: int, fd_high: int) -> None: ...