mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-21 19:32:13 +08:00
Add closefd keyword argument to Python 2's FileIO.__init__ (#1555)
Fixes #1553.
This commit is contained in:
committed by
Jelle Zijlstra
parent
4491e415f9
commit
1c8f43b86c
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user