Skip to content

Commit

Permalink
io: add open_code for py38 (python#3769)
Browse files Browse the repository at this point in the history
  • Loading branch information
hauntsaninja authored Feb 22, 2020
1 parent cfe6983 commit ab36ecb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stdlib/3/io.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...

Expand Down

0 comments on commit ab36ecb

Please sign in to comment.