@@ -90,7 +90,7 @@ class BufferedIOBase(IOBase):
9090 def read (self , __size : int | None = ...) -> bytes : ...
9191 def read1 (self , __size : int = ...) -> bytes : ...
9292
93- class FileIO (RawIOBase , BinaryIO ):
93+ class FileIO (RawIOBase , BinaryIO ): # type: ignore[misc] # incompatible definitions of writelines in the base classes
9494 mode : str
9595 name : FileDescriptorOrPath # type: ignore[assignment]
9696 def __init__ (
@@ -102,7 +102,7 @@ class FileIO(RawIOBase, BinaryIO):
102102 def read (self , __size : int = - 1 ) -> bytes : ...
103103 def __enter__ (self ) -> Self : ...
104104
105- class BytesIO (BufferedIOBase , BinaryIO ):
105+ class BytesIO (BufferedIOBase , BinaryIO ): # type: ignore[misc] # incompatible definitions of methods in the base classes
106106 def __init__ (self , initial_bytes : ReadableBuffer = ...) -> None : ...
107107 # BytesIO does not contain a "name" field. This workaround is necessary
108108 # to allow BytesIO sub-classes to add this field, as it is defined
@@ -113,17 +113,17 @@ class BytesIO(BufferedIOBase, BinaryIO):
113113 def getbuffer (self ) -> memoryview : ...
114114 def read1 (self , __size : int | None = - 1 ) -> bytes : ...
115115
116- class BufferedReader (BufferedIOBase , BinaryIO ):
116+ class BufferedReader (BufferedIOBase , BinaryIO ): # type: ignore[misc] # incompatible definitions of methods in the base classes
117117 def __enter__ (self ) -> Self : ...
118118 def __init__ (self , raw : RawIOBase , buffer_size : int = ...) -> None : ...
119119 def peek (self , __size : int = 0 ) -> bytes : ...
120120
121- class BufferedWriter (BufferedIOBase , BinaryIO ):
121+ class BufferedWriter (BufferedIOBase , BinaryIO ): # type: ignore[misc] # incompatible definitions of writelines in the base classes
122122 def __enter__ (self ) -> Self : ...
123123 def __init__ (self , raw : RawIOBase , buffer_size : int = ...) -> None : ...
124124 def write (self , __buffer : ReadableBuffer ) -> int : ...
125125
126- class BufferedRandom (BufferedReader , BufferedWriter ):
126+ class BufferedRandom (BufferedReader , BufferedWriter ): # type: ignore[misc] # incompatible definitions of methods in the base classes
127127 def __enter__ (self ) -> Self : ...
128128 def seek (self , __target : int , __whence : int = 0 ) -> int : ... # stubtest needs this
129129
@@ -144,7 +144,7 @@ class TextIOBase(IOBase):
144144 def readlines (self , __hint : int = - 1 ) -> list [str ]: ... # type: ignore[override]
145145 def read (self , __size : int | None = ...) -> str : ...
146146
147- class TextIOWrapper (TextIOBase , TextIO ):
147+ class TextIOWrapper (TextIOBase , TextIO ): # type: ignore[misc] # incompatible definitions of write in the base classes
148148 def __init__ (
149149 self ,
150150 buffer : IO [bytes ],
0 commit comments