From 1c8f43b86c638d1ec930812c90a7648d20789661 Mon Sep 17 00:00:00 2001 From: Daniel Watkins Date: Thu, 17 Aug 2017 14:47:08 -0400 Subject: [PATCH] Add closefd keyword argument to Python 2's FileIO.__init__ (#1555) Fixes #1553. --- stdlib/2/_io.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/2/_io.pyi b/stdlib/2/_io.pyi index 0a0b6d0fc..3f1baab15 100644 --- a/stdlib/2/_io.pyi +++ b/stdlib/2/_io.pyi @@ -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: ...