File tree 1 file changed +13
-7
lines changed
1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,19 @@ if sys.version_info >= (3, 1):
17
17
18
18
open = builtins .open
19
19
20
- if sys .version_info >= (3 , 3 ):
21
- BlockingIOError = BlockingIOError
22
- class UnsupportedOperation (OSError , ValueError ): ...
23
- else :
24
- class BlockingIOError (IOError ):
25
- characters_written = ... # type: int
26
- class UnsupportedOperation (IOError , ValueError ): ...
20
+ # FIXME when mypy handle condtional, we can uncomment the next block and remove
21
+ # the temporary fix
22
+ #if sys.version_info >= (3, 3):
23
+ # BlockingIOError = BlockingIOError
24
+ # class UnsupportedOperation(OSError, ValueError): ...
25
+ #else:
26
+ # class BlockingIOError(IOError):
27
+ # characters_written = ... # type: int
28
+ # class UnsupportedOperation(IOError, ValueError): ...
29
+ class BlockingIOError (OSError ):
30
+ characters_written = ... # type: int
31
+ class UnsupportedOperation (OSError , ValueError ): ...
32
+
27
33
28
34
class IOBase :
29
35
def __iter__ (self ) -> Iterator [bytes ]: ...
You can’t perform that action at this time.
0 commit comments