@@ -63,7 +63,7 @@ class BufferedIOBase(IOBase):
6363 def read (self , __size : int | None = ...) -> bytes : ...
6464 def read1 (self , __size : int = ...) -> bytes : ...
6565
66- class FileIO (RawIOBase , BinaryIO ):
66+ class FileIO (RawIOBase , BinaryIO ): # type: ignore # argument disparities between the base classes
6767 mode : str
6868 name : StrOrBytesPath | int # type: ignore[assignment]
6969 def __init__ (
@@ -75,7 +75,7 @@ class FileIO(RawIOBase, BinaryIO):
7575 def read (self , __size : int = ...) -> bytes : ...
7676 def __enter__ (self : Self ) -> Self : ...
7777
78- class BytesIO (BufferedIOBase , BinaryIO ):
78+ class BytesIO (BufferedIOBase , BinaryIO ): # type: ignore # argument disparities between the base classes
7979 def __init__ (self , initial_bytes : bytes = ...) -> None : ...
8080 # BytesIO does not contain a "name" field. This workaround is necessary
8181 # to allow BytesIO sub-classes to add this field, as it is defined
@@ -89,7 +89,7 @@ class BytesIO(BufferedIOBase, BinaryIO):
8989 else :
9090 def read1 (self , __size : int | None ) -> bytes : ... # type: ignore[override]
9191
92- class BufferedReader (BufferedIOBase , BinaryIO ):
92+ class BufferedReader (BufferedIOBase , BinaryIO ): # type: ignore # argument disparities between base classes
9393 def __enter__ (self : Self ) -> Self : ...
9494 def __init__ (self , raw : RawIOBase , buffer_size : int = ...) -> None : ...
9595 def peek (self , __size : int = ...) -> bytes : ...
@@ -98,7 +98,7 @@ class BufferedReader(BufferedIOBase, BinaryIO):
9898 else :
9999 def read1 (self , __size : int ) -> bytes : ... # type: ignore[override]
100100
101- class BufferedWriter (BufferedIOBase , BinaryIO ):
101+ class BufferedWriter (BufferedIOBase , BinaryIO ): # type: ignore # argument disparities between base classes
102102 def __enter__ (self : Self ) -> Self : ...
103103 def __init__ (self , raw : RawIOBase , buffer_size : int = ...) -> None : ...
104104 def write (self , __buffer : ReadableBuffer ) -> int : ...
@@ -130,7 +130,7 @@ class TextIOBase(IOBase):
130130 def read (self , __size : int | None = ...) -> str : ...
131131 def tell (self ) -> int : ...
132132
133- class TextIOWrapper (TextIOBase , TextIO ):
133+ class TextIOWrapper (TextIOBase , TextIO ): # type: ignore # argument disparities between base classes
134134 def __init__ (
135135 self ,
136136 buffer : IO [bytes ],
0 commit comments