mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
io: add open_code for py38 (#3769)
This commit is contained in:
@@ -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): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user