io: add open_code for py38 (#3769)

This commit is contained in:
Shantanu
2020-02-22 03:53:16 -08:00
committed by GitHub
parent cfe69831e9
commit ab36ecb784

View File

@@ -20,6 +20,9 @@ _T = TypeVar('_T', bound=IOBase)
open = builtins.open
if sys.version_info >= (3, 8):
def open_code(path: str) -> IO[bytes]: ...
BlockingIOError = builtins.BlockingIOError
class UnsupportedOperation(OSError, ValueError): ...