mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-15 14:31:59 +08:00
committed by
Łukasz Langa
parent
1515ed9f88
commit
ac651d2f8c
@@ -16,19 +16,13 @@ SEEK_END = ... # type: int
|
||||
|
||||
open = builtins.open
|
||||
|
||||
# FIXME when mypy handle condtional, we can uncomment the next block and remove
|
||||
# the temporary fix
|
||||
# if sys.version_info >= (3, 3):
|
||||
# BlockingIOError = BlockingIOError
|
||||
# class UnsupportedOperation(OSError, ValueError): ...
|
||||
# else:
|
||||
# class BlockingIOError(IOError):
|
||||
# characters_written = ... # type: int
|
||||
# class UnsupportedOperation(IOError, ValueError): ...
|
||||
class BlockingIOError(OSError):
|
||||
characters_written = ... # type: int
|
||||
class UnsupportedOperation(OSError, ValueError): ...
|
||||
|
||||
if sys.version_info >= (3, 3):
|
||||
BlockingIOError = builtins.BlockingIOError
|
||||
class UnsupportedOperation(OSError, ValueError): ...
|
||||
else:
|
||||
class BlockingIOError(IOError):
|
||||
characters_written: int
|
||||
class UnsupportedOperation(IOError, ValueError): ...
|
||||
|
||||
class IOBase:
|
||||
def __iter__(self) -> Iterator[bytes]: ...
|
||||
|
||||
Reference in New Issue
Block a user