From ab36ecb7847eb62f8802795437f1e403ef3e87f2 Mon Sep 17 00:00:00 2001 From: Shantanu Date: Sat, 22 Feb 2020 03:53:16 -0800 Subject: [PATCH] io: add open_code for py38 (#3769) --- stdlib/3/io.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/3/io.pyi b/stdlib/3/io.pyi index 64be67ebc..efc77b970 100644 --- a/stdlib/3/io.pyi +++ b/stdlib/3/io.pyi @@ -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): ...