File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
- from typing import Any , Union
1
+ from typing import Any , Union , IO
2
2
import io
3
3
4
4
FASYNC = ... # type: int
@@ -72,7 +72,7 @@ LOCK_SH = ... # type: int
72
72
LOCK_UN = ... # type: int
73
73
LOCK_WRITE = ... # type: int
74
74
75
- _ANYFILE = Union [int , io . IOBase ]
75
+ _ANYFILE = Union [int , IO ]
76
76
77
77
# TODO All these return either int or bytes depending on the value of
78
78
# cmd (not on the type of arg).
Original file line number Diff line number Diff line change @@ -39,5 +39,7 @@ class RawIOBase(_io._RawIOBase, IOBase):
39
39
class BufferedIOBase (_io ._BufferedIOBase , IOBase ):
40
40
pass
41
41
42
- class TextIOBase (_io ._TextIOBase , IOBase ): # type: ignore
42
+ # Note: In the actual io.py, TextIOBase subclasses IOBase.
43
+ # (Which we don't do here because we don't want to subclass both TextIO and BinaryIO.)
44
+ class TextIOBase (_io ._TextIOBase ):
43
45
pass
You can’t perform that action at this time.
0 commit comments