Add closefd keyword argument to Python 2's FileIO.__init__ (#1555)

Fixes #1553.
This commit is contained in:
Daniel Watkins
2017-08-17 14:47:08 -04:00
committed by Jelle Zijlstra
parent 4491e415f9
commit 1c8f43b86c

View File

@@ -92,7 +92,7 @@ class _RawIOBase(_IOBase):
class FileIO(_RawIOBase, BytesIO): # type: ignore # for __enter__
mode = ... # type: str
closefd = ... # type: bool
def __init__(self, file: str, mode: str = ...) -> None: ...
def __init__(self, file: str, mode: str = ..., closefd: bool = ...) -> None: ...
def readinto(self, buffer: bytearray)-> int: ...
def write(self, pbuf: str) -> int: ...